dmulholl / vimv Goto Github PK
View Code? Open in Web Editor NEWA command line utility for batch-renaming files.
Home Page: https://www.dmulholl.com/dev/vimv.html
License: BSD Zero Clause License
A command line utility for batch-renaming files.
Home Page: https://www.dmulholl.com/dev/vimv.html
License: BSD Zero Clause License
First of all, thanks for this program. It's very useful to me. Are you open to adding filename sorting instead of the default vector sort? I use nnn (the terminal file viewer) all the time and I'm often renaming files with one tmux pane while another tmux pane has nnn open to look through directory contents. The current sorting is way different from nnn which makes this process difficult. I've forked the repo and changed the sorting to match almost perfectly. I was thinking it could be cool to have a --sort <algo_name>
flag with options default
and nnn
to start with? Is that outside the scope of the project?
Here's my commit that changed the sorting for reference.
on save perhaps, when the temp file is saved show the stdout of a dry run inside of vim
I have the following file: -SsV0tZMUCNE.webm
(unicode representation is \343\200\200-SsV0tZMUCNE.webm
) which vimv cannot open.
I get the following error:
vimv " -SsV0tZMUCNE.webm"
Error: the input file '-SsV0tZMUCNE.webm' does not exist.
I wanted to use this program along with lf but couldn't find an option to install this using homebrew. Could there be an option to do that
Steps to reproduce:
mkdir a b
vimv a b
Swapping the two lines and saving yield the following error message:Error: cannot overwrite the existing directory 'b'.
I'm running vimv 1.7.3.
Currently, if no commandline arguments are passed the program quits. It would be better if invoking with no arguments cause the program to open the editor with all the files/folder in the current directory to rename.
This was my thought process when I installed the program for the first time. I was confused when the program exited when tried running the program with no args. Had to look at the source code to figure out that it exits if no args are provided
My current workaround for this is to add a shell alias like this
alias br="vimv *"
I mean i understand it's a small change.. but hey, it's two less keys pressed
Using git mv
and git mv --dry-run
if specified?
I realize, this feature might complicate the implementation, but you also might find it interesting.
vimv a b
.a
becomes b
and b
becomes a
.Error: the output file 'b' already exists, use --force to overwrite
.I know, this renamer (written in Go) supports it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.