Edit directory with vim
Project description
VDIR - Edit directory with vim
Heavily inspired by vidir from moreutils and
edir.
With a few different design choices:
-
vdiralways prompts before applying changes -
vdirdoesn't integrate withgit(for not accidentally messing up your staging area) -
vdirdisplays an (arguably) pretty-looking preview of the changes -
vdirpads sequence number to same width for visual block operations -
vdirreferencesLS_COLORSfor coloring -
vdirsupports stage/unstage items dynamically -
vdirtreats symbolic links as files instead of resolving them -
vdirsupports editing symbolic links
Examples (shell)
Edit the current diretory:
sh$ vdir
Manage certain files:
sh$ vdir *.txt
Manage found files:
sh$ fd --type f | vdir
Examples (vim)
A vdir's vim session looks like this:
# ═════════════════════════════════════════════════════════════════════════════
# - Add a path to track it.
# - Sort the paths as you want.
# - Add a '#' before the id to untrack an item.
# - Add a '+' before the id to expand non-hidden items under the directory.
# - Add a '*' before the id to expand all items under the directory.
# - Add a '@' before the id to resolve the soft link.
# - Setup default vdir.vimrc with
# $ vdir --vimrc
# ═════════════════════════════════════════════════════════════════════════════
110 ││ LICENSE
120 ││ README.md
131 ││ __pycache__/
140 ││ pyproject.toml
151 ││ vdir/
Edit the content, save and quit, and vdir prompts you the changes like this:
[info] Delete:[LICENSE]
[info] Rename:[README.mdd]
Continue? [(Y)es / (n)o / (e)dit / (r)edo] _
yto apply and continue with anothervimsession- Empty input to apply and quit
nto cancel the editctrl+cto cancel the edit if you're scared of the changeeto continue editingrto restart with initial contents
Installation
sh$ pipx install vdir
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vdir-0.1.5.tar.gz.
File metadata
- Download URL: vdir-0.1.5.tar.gz
- Upload date:
- Size: 91.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.5 cpython/3.14.3 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f9f00f40d7221fb145cb8aea1cc9e06ca1c492e2de23d26c1d373babbc2d244
|
|
| MD5 |
f8f6f4d0102232b4aaca4ef4af0fcd65
|
|
| BLAKE2b-256 |
8ed69f293c7cadae6962da1caeb6484d7db21ab34905b732a710a145ece4ecb8
|
File details
Details for the file vdir-0.1.5-py3-none-any.whl.
File metadata
- Download URL: vdir-0.1.5-py3-none-any.whl
- Upload date:
- Size: 113.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: Hatch/1.16.5 cpython/3.14.3 HTTPX/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf37d9845ca900487a7aa67321a3615bcd7f4078386199c92d774b2fa751f34c
|
|
| MD5 |
a38919487334b72809169ac7dffd1488
|
|
| BLAKE2b-256 |
e6f13161647890d7189943ca1f8448dfc5bad9171bd0700110aeea285efeb248
|