superfile icon indicating copy to clipboard operation
superfile copied to clipboard

Feature Request: Add Shift + Delete to Permanently Delete Files Without Using Trash Can

Open fr0st-iwnl opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Sometimes it can be inconvenient to delete files permanently because they first go to the trash can, requiring an extra step to empty it.

Describe the solution you'd like I would like an option where pressing Shift + Delete would delete files immediately and permanently, bypassing the trash can.

Describe alternatives you've considered An alternative solution could be a toggle option in the settings to enable or disable this feature as per user preference.

Additional context This feature would make file management easier by letting users permanently delete files in one step.

fr0st-iwnl avatar Aug 05 '24 12:08 fr0st-iwnl

This may be related to https://github.com/yorukot/superfile/issues/300 To do this, you must first enable superfile to detect more than 2 keys. I have not done any research on whether bubbletea can do this. but worth a try

yorukot avatar Aug 06 '24 11:08 yorukot

Or we could add a third option to the confirmation dialog? (p) permanently WDYT?

Image

jonas-grgt avatar Jun 11 '25 15:06 jonas-grgt

Seems like a good option. What do you think @yorukot

lazysegtree avatar Jun 14 '25 13:06 lazysegtree

I think this is a great approach.

yorukot avatar Jun 14 '25 13:06 yorukot

@yorukot I'm up for giving this a shot and dropping a PR.

jonas-grgt avatar Jun 14 '25 14:06 jonas-grgt

@jonas-grgt Of course, thank you so much for jumping in!

Just a quick note: I don't think this will be a very simple change. If you run into anything or have questions, feel free to ask. I'm happy to help.

yorukot avatar Jun 14 '25 14:06 yorukot

Hi @jonas-grgt, just checking in to see if you're still planning to work on this. No pressure at all. If you're currently busy or can't continue, that's totally okay. Feel free to let us know, and someone else can take over if needed.

Thanks again for showing interest and offering to help!

yorukot avatar Jun 28 '25 10:06 yorukot

Hi @yorukot sorry I don't think I'll find any time this summer to work on this.

jonas-grgt avatar Jul 23 '25 14:07 jonas-grgt

I would prefer something like Shift+delete or Shift+D rather then have 3 options on a notify modal.

Notification boxes should not be made more complex. Its a bit complexity jump from going to yes / no, to yes / yes with another option / no .

lazysegtree avatar Aug 11 '25 02:08 lazysegtree

And its more safe. If user presses Ctrl+d, there is no risk of him permanently deleting by mistake.

lazysegtree avatar Aug 11 '25 02:08 lazysegtree

Done via

  • https://github.com/yorukot/superfile/pull/987

Note Shift+Delete, it seems, isn't detectable by bubbletea as of now.

lazysegtree avatar Aug 17 '25 10:08 lazysegtree