Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)