Replies: 1 comment 1 reply
-
good idea, nicely presented! In your tool, what happens if the user deletes a line in the editor ? The renaming app would be able to detect a line had been removed but would be confused which file to rename to what.. For example, say these are your input files ("before" state):
and in your editor you renamer the files to this ("after" state):
One file has been removed. Should the renaming app rename |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was going to make a library for this, and while looking for a name, I stumbled upon this one. So instead of creating a library, I'll see if my idea fits in this one. :)
The idea is to be able to rename a bunch of files directly in the editor. This came to my mind when I saw a bunch of files and thought, "it'd be cool if I could multicursor-rename those".
I'm thinking of the same behavior than
git commit
regarding the editing:renamer
in a directoryrenamer
renames each file according to their new namesFor instance:
At this moment, the editor is opened with the following content:
You rename them with your multi-cursor skills:
And you close your editor.
The advantage is to not have to remember a CLI-specific syntax, and to have the power of your editor under the hand.
The only challenge is to get the editor-thing right. I believe
git commit
's behavior is perfect, but the implementation may be challenging to get done.What do you think?
Beta Was this translation helpful? Give feedback.
All reactions