rename_nav request

Discussion related to "Everything" alpha and beta versions.
vertigo
Posts: 55
Joined: Sun Oct 08, 2017 8:27 pm

rename_nav request

Post by vertigo »

Either as a modification to this setting, or a secondary setting that affects its behavior when enabled, having it simply move the cursor to the same place in the next/previous file, rather than simply moving to the next file with the entire filename selected, would be preferred behavior. Currently, it's no different than just moving to the next file and hitting F2, and if you want to make a change to that file similar to the previous one, you have to then either click where you want or use the arrows to move the cursor to where you want, both of which are not much of an improvement. It makes much more sense to me, and in my use case 99% of the time is what I want, for it to simply move down like it would when pressing up or down on a line in between other lines in a text editor. IOW, it should be ready to type in the exact same position you were at in the last file. For example, if I activate rename on a file, move the cursor to position 10 and type a letter putting me at position 11, then hit down to go to the next file, I should be able to simply hit the left arrow one time to get back to position 10 on that file. It seems much more likely that users enabling this option would want to use it like this or make changes at the beginning (would just need to hit home) or end (would just need to hit end*) of the filename rather than change the entire filename (what the current design sets you up to do).

*Even if the user wanted to make a change at the beginning or end of the filename, this proposed behavior wouldn't make that any more difficult than it currently is for the beginning, and only a little more for the end (would need to hit end then arrow left to get to the end of the filename, before the extension), but even that could be handled to make it no more difficult. This could be done by making end, when used after arrowing up/down to another file while rename is active, go to right before the extension instead of after it like it typically does, and hitting it again (2x) would go to after the extension. If rename is activated on a file vs moving to a file while it's active, then it would behave normally and go straight to after the extension on first press.
therube
Posts: 5887
Joined: Thu Sep 03, 2009 6:48 pm

Re: rename_nav request

Post by therube »

Depending on your file names, you may be able to select multiple files, & perform (the same) wanted operation on them all of them at once.

Code: Select all

abc123
abc456
abc789def
Select all the files.
Lets say you want to enter GHI- after the c.

(Old Format will show:)
Old format: abc%1

(for the New Format use...)
New format: abcGHI-%1



(Now of course this all depends on your file names & what you're looking to do, & if there is some commonality that you can work with...)
therube
Posts: 5887
Joined: Thu Sep 03, 2009 6:48 pm

Re: rename_nav request

Post by therube »

Along similar lines, I've long thought of an option where if you were to F2 on the same file - in succession, that it would remember the position of the last change made to the file name.

file:
this is a test, this is only a test


F2
this is a NEW test, this is only a test

- you have inserted 'NEW' into the file name.

A subsequent F2, would position the cursor after the W, under the presumption that you wanted to insert more text at that point.

F2, cursor is sitting just after W, all you need to type is EST.
this is a NEWEST test, this is only a test



For me, that is apt to occur when I'm changing a file name, & I'm naming the file based on criteria I'm observing within the file, & as I'm actively observing the file, the file happens to be locked, hence any rename must wait till the file is closed.

So I see I want to enter NEW into the name.
I close the file, F2, & enter 'NEW'.
Open the file, again, which locks the file, & I now say, I want newEST.
I close the file, F2, & as the cursor is position "properly" (or at least not at the start or end of the name, so more "properly", so at least somewhat "better"), all I need to do is type EST.
Open the file again... (on the next F2, cursor would be positioned just after the T...).
vertigo
Posts: 55
Joined: Sun Oct 08, 2017 8:27 pm

Re: rename_nav request

Post by vertigo »

Thanks. I'm aware of the batch renaming, though I rarely use it. When I need to do something to that degree, I generally use BRU or my file manager. But sometimes I just need to make a change to a small handful of files across drives, which makes Everything easier because I can access them all at once, unlike in the file manager, and I can, in theory, do a quick change to each of them as needed, faster and easier than putting them in BRU and configuring it when it's a simple change on a few files. Problem is, while Everything is great for these specific cases, it's suitability is diminished by making the job harder due to this issue, hence the request. But yeah, I do sometimes use the batch rename feature (did earlier today), just that oftentimes F2 rename and arrow up/down is better suited for the task.

As for your idea, I could see a potential use for that, and I do similar workflows at times, though usually I'm adding to the end of a file each time, which is easy. As for the file being locked preventing changes, depending on the file types, sometimes it's a matter of using a different program to access it, as not all programs lock files the same. You could also create a text file with the file's name, make your changes to that, then once done copy the modified text file name back to the file.
santilli
Posts: 36
Joined: Tue Apr 30, 2024 7:05 am

Re: rename_nav request

Post by santilli »

you should definitely consider the advanced rename for this task, and i don't mean as in trying to find a magical regex formula or anything...

say you have a bunch of files you want to rename, you select them all and press shift+f2... irrespective of the automatic formula that Everything will pick for old/new formats, right below it all files are listed in one single text box. instead of having to press f2 to rename each file, or having each file name being fully selected every time, you can simply position the mouse cursor in the right spot and go down one by one.

one annoyance of this method is that the cursor will disappear as soon as you start typing, but it's still there exactly where you left it.
this is the most effective strategy available as of now if you want to append a different text for each file.

if you want to append the exact same text to all files, after an exact character-based position, regex will be the best approach:
If you set the old format to
^(.{5})(.*)$
and the new format to
\1_EXAMPLE_\2
you will essentially append _EXAMPLE_ to all selected file names exactly after the 5th character.
vertigo
Posts: 55
Joined: Sun Oct 08, 2017 8:27 pm

Re: rename_nav request

Post by vertigo »

Interesting. I didn't know you could just change it directly like that. Definitely better, and I'll have to try and remember that, but I'd still prefer to be able to do the same thing in the main interface. Fewer steps, don't have to remember the shortcut, easier to do without having to use the mouse (can do keyboard only with this method, but requires a lot more work), and the rename window doesn't use dark mode. Still, good to know. Thanks.