Replies: 5 comments 3 replies
-
I often need to create temporary files for testing and want them to be removed completely; not moved to trash-bin. Having an option to bypass trash isn't a niche case and we generally don't merge things if it's just one person with a niche usecase.
You can simply remove the binding in |
Beta Was this translation helpful? Give feedback.
-
I agree with @stelcodes.
Terrible way to go about it. nnn has become a standard tool, you don't keep custom builds for each of the dozens if not hundreds of standard tools you need. nnn is even in standard repos now, which is nice. It's not feasible nor even possible to build your own everywhere either. This should definitely be opt-in, as everything in general. A flag or a config file if needs be. An option that can and realistically will cause accidental data loss is terrible in general.
Then create a script for your specific use-case that cleans up in whatever interval you need. Or just run a bash loop one liner. |
Beta Was this translation helpful? Give feedback.
-
I think hiding the option behind an env var (NNN_DELETE) with the default value of 0 would be a good solution, fitting the overall nnn configuration style. I, myself, like the option to permanently delete files regardless of NNN_TRASH value, but I also understand, why some people don't like it. |
Beta Was this translation helpful? Give feedback.
-
Part of my issue with it is that it's neither able to be disabled (through env var, keeping with the configless setup) nor is it a key combination that's hard to hit by accident. i misinput fairly often (for example, inputting to the wrong terminal window when trying to do text editing) and shift+X is not a difficult keybind to hit on accident. anything as destructive should be a keybind that requires it to be pressed quite deliberately |
Beta Was this translation helpful? Give feedback.
-
There are contradictory user experiences and requests on this one. We are supporting both. |
Beta Was this translation helpful? Give feedback.
-
With #1811, the keybind
X
willrm -rf
files regardless of whetherNNN_TRASH
is set. I really don't like this new behavior. I useNNN_TRASH
precisely because it's very difficult to accidentallyrm -rf
files. I don't want to worry about accidentally pressing it if I hit the capslock key mistakenly. It's frustrating that there didn't even seem to be any demand for this feature besides from the person who implemented it. Most users probably have no idea this was merged. When the next release finally comes, I'm sure I won't be the only one disappointed. I'll probably stick to v4.9 if it doesn't get reverted. Does anyone else feel similarly?Beta Was this translation helpful? Give feedback.
All reactions