6 ms·
If didn't read the docs, noticed hkjl moved around, and accidentally deleted 3 folders with ctrl+d seeing if I could scroll down faster. Scary defaults if you h
by srwest 2y ago
If didn't read the docs, noticed hkjl moved around, and accidentally deleted 3 folders with ctrl+d seeing if I could scroll down faster. Scary defaults if you have Vim muscle memory.
- likeclockwork 2y agoHoly shit, thanks for the warning.
- patwie 2y agoThese key-bindings are pure evil for vim users.
- gouggoug 2y agoEven for non-vim users this default is absolutely horrendous
- StrLght 2y agoSo there's no confirmation for deletion? Oof, that's probably the most unsafe default I have seen in a while.
- night_cat 2y agoThere will be a prompt for complete deletion, but there will be no prompt for putting it in the trash can.
- godelski 2y agoIt really weirds me out how many people use a sprinkling of vim keybindings but don't use more. Like how many vim users don't know <C-[> (esc) or contextual completion like <C-x><C-p> (:help ins-completion). I see so many people use plugins for things that already exist in vim but people never discuss. One that bites me a lot is when a vim keybinding is implemented, has insert mode, and they don't also rebind <C-w>. Go from trying to delete a word (backwards) but end up losing a whole session. It's such muscle memory I sometimes do it on webpages, but maybe that one is a feature instead of a bug lol
- jez 2y agoThis is my biggest complaint with keybindings on Linux/Windows, that Ctrl means “escape codes” in terminal emulator applications and “window/UI operations” in every other application. By contrast, in macOS all the window/UI keybindings are typically Cmd (Cmd-W) which means that GUI applications attempting to layer on vi keybindings don’t have to also audit all the Ctrl keybindings that might be doing something wildly different compared to what vi users expect. Cmd for UI and Ctrl for terminal just makes for such a nice default convention.
- mikepurvis 2y agoI agree— having switched back to Windows five years ago, this is one of the biggest things I miss about the Mac hardware. Having a separate key just avoids the whole drama around whether Ctrl-C is "copy the thing" or "shut it all down", and which of those functions is going to get remapped to Ctrl-Shift-C and all the fallout from that.
- sshine 2y agoConfigurable windows managers on Linux let you code a “super” key. I like the Window key, since it serves no other purpose, and never overlaps with default bindings on Linux. So the Cmd/Ctrl split on Mac maps nicely to the Win/Ctrl split on Linux.
- godelski 2y agoWhile I do this too I understand the above complaint. I think naturally linux should have more of a system similar to what OSX does. I mean I'm constantly switching between OSX and Linux machines but more and more recently I've been at at mac computer while inside a linux system and that is very seemless because it is the GUI that fucks shit up. But now there's so much momentum that I'm not sure they can go back. I think the only way to make this correction is for a big distro like Ubuntu/Pop/Manjaro/Endeavor to switch to a default with alt or super as they windowed operating key but have the option to switch back (should be implemented in the install process and made clear and easy to undo. But without making it the default it'll always stay the other way. (first introduction should be non-default)).
- night_cat 2y agoBtw, this is not actually deleted, but put in the trash can. But it seems that this hotkey is not good for many people. It may be changed in the next version. Thanks for your feedback.
- ghostly_s 2y agoI use a number of apps where ctrl-d is a common non-destructive shortcut, and can't recall ever encountering one where it was used for delete.
- 2024throwaway 2y agok9s does a delete for ctrl+d
- gray_-_wolf 2y agoWith a prompt, asking for confirmation if I recall correctly...
- opan 2y agoIn ranger, dd is cut/mv and dD is delete, but dD on one file spawns a command with :delete typed in so you have to hit enter to pull the trigger, and doing it with multiple files has the same behavior plus adds a y/N prompt asking if you're sure you want to delete those specific files. This is enough friction to prevent most mishaps, but not enough to be annoying. I would suggest taking inspiration from this.
- behnamoh 2y agoHow do I undo CTRL-d deletes? I almost deleted all my home dir...
- night_cat 2y agoI am so sorry to hear about that:( You can go to "~/.local/share/Trash" all files that you deleted are at there
- luqtas 2y agowhat's even the point of downloading something so banal & not read the docs; comment at the post WITH the warning of it not complaining with Vim shortcuts when it's clear that Emacs is ballparks better? /s
- twobitshifter 2y agoYes those defaults won’t really work for vim. Escape exits the program, without even using it, I already know I am going to exit a zillion times once my brain thinks I am in Vim. But the good thing is they are just defaults. Hopefully there are already no legions of users resistant to any changes to defaults.
- tmtvl 2y agoI used vim for 5 years and never knew about C-d for scrolling until after I had switched to Emacs and one day, on a whim, decided to install and activate evil and look what various commands were bound to. I removed evil immediately afterwards as 5 years of vim taught me to hate modal editing with a passion.
- deleted 2y ago[deleted]