GithubHelp home page GithubHelp logo

dmulholl / vimv Goto Github PK

View Code? Open in Web Editor NEW
73.0 2.0 5.0 53 KB

A command line utility for batch-renaming files.

Home Page: https://www.dmulholl.com/dev/vimv.html

License: BSD Zero Clause License

Rust 100.00%

vimv's Issues

Support alternate sorting option

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.

installation option using homebrew

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

Directories break cycles support

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.

Make no argument invokation useful

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

Add support for cycle renaming

I realize, this feature might complicate the implementation, but you also might find it interesting.

  1. Open two files: vimv a b.
  2. Exchange the file's names, so a becomes b and b becomes a.
  3. Save and exit.
    What happens: Error: the output file 'b' already exists, use --force to overwrite.
    Suggestion: actually, rename the files.

I know, this renamer (written in Go) supports it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.