I very often make quick backups of files by copying them to the current directory
and just adding a '~' (tilde) to the end of the filename.
If I try this with CTRL-C CTRL-V the resulting confirmation dialog does not have
the filename included after the current directory. This means I have to type the
entire filename manually and add a tilde at the end. This is a real pain when the
filename is complicated or long.
I was looking in FilePanel.cpp where most of this dialog action seems to take
place, and I think I see a way to make this possible without screwing anything
I believe it's FilePanel.cpp, line 1337:
where target is identical to targetdir and does not include the filename.
But, if I tweak this line to go:
I get the exact behavior I'm looking for:
->Select file->CTRL-C->CTRL-V->tap the tilde->tap ENTER
TA-DA! Brand new backup file. Lovely.
Log in to post a comment.