Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sentriz/vi-paths
edit files and directories as if they were a text file
https://github.com/sentriz/vi-paths
Last synced: 3 days ago
JSON representation
edit files and directories as if they were a text file
- Host: GitHub
- URL: https://github.com/sentriz/vi-paths
- Owner: sentriz
- Created: 2022-04-25T21:24:11.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-10-18T12:02:38.000Z (about 2 years ago)
- Last Synced: 2024-12-11T22:05:50.441Z (22 days ago)
- Language: Go
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
vi-paths
edit files and directories with $EDITOR as if they were a text file
---
### installation
```shell
$ go install go.senan.xyz/vi-paths@latest
```### usage
```shell
$ export EDITOR=vi
$ vi-paths [-dry-run] [file] ...
```### example
```shell
$ vi-paths ~/music/albums/The Fall/**
# to rename/move a file/dir, edit the line
# to delete a file/dir, clear the line
```### todo
- [ ] add more safety checks
---
[![asciicast](https://asciinema.org/a/TOtkyLZHceizsfHNlHBdk1Jzs.svg)](https://asciinema.org/a/TOtkyLZHceizsfHNlHBdk1Jzs)