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: 11 months 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 (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-18T12:02:38.000Z (over 3 years ago)
- Last Synced: 2025-06-02T06:05:58.066Z (about 1 year 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
---
[](https://asciinema.org/a/TOtkyLZHceizsfHNlHBdk1Jzs)