Flow-Launcher / Flow.Launcher

:mag: Quick file search & app launcher for Windows with community-made plugins
https://flowlauncher.com
MIT License
8.08k stars 314 forks source link

File/folder delete hotkey #2917

Open jjw24 opened 2 months ago

jjw24 commented 2 months ago

Discussed in https://github.com/Flow-Launcher/Flow.Launcher/discussions/2867

Originally posted by **AlanEdd** July 31, 2024 Just wondering is there any delete hotkey, to delete a file or folder in context in the search results ? It would be handy to have `Shift+Delete` rather than, going to the context menu and so on. Thanks Alan.
nanoraptor commented 2 months ago

I agree with this!!!!! Also, I've noticed that interacting with context menus often causes the Flow Launcher search window to disappear, even though it should ideally stay open. For example, when deleting a file or using FileLocksmith (PT) from the context menu, the window closes. This behavior seems to occur with most context menu actions.

A few other adjustments I'd suggest:

Adding these features with improve the overall usability of the aformentioned features

VictoriousRaptor commented 2 months ago

Add Alt+Shift+Delete for permanently deleting files.

Currently we only have permanent delete. Move to recycle bin is a potential enhancement.

nanoraptor commented 2 months ago

Currently we only have permanent delete. Move to recycle bin is a potential enhancement.

The original suggestion was to enable shift+del for deleting file and folders. I added that alt+shift+del keybinding should enable permanently delete.

jjw24 commented 2 months ago

Perhaps use del key for moving to recycle bin?

nanoraptor commented 2 months ago

Perhaps use del key for moving to recycle bin?

If the cursor or caret was anywhere other than the end of the query in flow's search window, then it will delete the letters instead in query box instead of deleting the file. But implementing this by removing the del key's original function would be fine as I don't think most of the users use del key anyways

But, if the caret is at the end of the query, delete key for delete and shift+delete for permanently delete sounds perfectly fine. We can also force shift the caret to the end of the query when delete key is pressed while a explorer result in focus. For other non explorer queries, the function of delete key should function as usual.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 60 days.\n\nAlternatively this issue can be kept open by adding one of the following labels:\nkeep-fresh

github-actions[bot] commented 1 week ago

This issue was closed because it has been stale for 7 days with no activity. If you feel this issue still needs attention please feel free to reopen.