mgunyho / tere

Terminal file explorer
European Union Public License 1.2
1.68k stars 38 forks source link

add shortcut to copy current file/folder path #60

Open metasong opened 2 years ago

metasong commented 2 years ago

convenient to do further operation for the current located file/folder

mgunyho commented 2 years ago

Thanks for the suggestion, this is a decent idea. Although I fear that this might be hard to implement consistently, for example broot has varying clipboard support depending on the platform. But I haven't looked into any crates for doing this, so I don't know why it's like that. Pull requests are definitely welcome!

What default shortcut do you think would be best? The first that came to my mind is alt-C (and vim-style alt-Y) to copy the folder under the cursor, and alt-shift-C (and alt-shift-Y) to copy the folder you are currently in. What do you think?

metasong commented 2 years ago

it will be nice to be able to copy file path too. copy current folder may be redundant, or not nessesary