News for hackers. Stuff that matters.
Re:Superfile – A fancy, pretty terminal file manager by srwest on Friday May 10, 2024 @12:23PM (#40320788)
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.
Re:Superfile – A fancy, pretty terminal file manager by godelski on Friday May 10, 2024 @03:29PM (#40322949)
It 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

Re:Superfile – A fancy, pretty terminal file manager by jez on Friday May 10, 2024 @04:20PM (#40323397)
This 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.

Re:Superfile – A fancy, pretty terminal file manager by sshine on Friday May 10, 2024 @04:28PM (#40323469)
Configurable 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.

Re:Superfile – A fancy, pretty terminal file manager by godelski on Friday May 10, 2024 @06:12PM (#40324272)
While 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)).
Re:Superfile – A fancy, pretty terminal file manager by opan on Friday May 10, 2024 @08:07PM (#40324939)
Super is the "Windows" key (or the Command key), it's the "mod key" that can then be set to super or alt/meta or whatever.

For the reasons you suggest (WMs often heavily using the super key), I would not want it to be used in the macOS way as I have a few dozen keybinds I'd lose or have to remap then. Stuff like focusing or moving windows or workspaces. Emacs can also make use of the super key, though I don't know if it has anything bound using it by default.

The macOS approach is cool and makes some sense, but I wouldn't want it forced on me, and I'm kinda glad I didn't imprint on it.

Re:Superfile – A fancy, pretty terminal file manager by mikepurvis on Friday May 10, 2024 @04:27PM (#40323460)
I 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.
Re:Superfile – A fancy, pretty terminal file manager by medstrom on Saturday May 11, 2024 @05:02AM (#40326958)
When you use EXWM (Emacs X Window Manager), this is actually a blessing! It means you can bind Super keys only in Emacs and have them do exactly the same thing every time, while the other X apps (terminals, browsers...) get the Control key to themselves.
Re:Superfile – A fancy, pretty terminal file manager by likeclockwork on Saturday May 11, 2024 @11:29AM (#40328697)
This isn't true though. Control + arrow keys for example navigate desktops on MacOS. On Linux I can at least restrict my desktop environment's shortcuts to super, leaving the other mods open for applications. MacOS uses every single modifier, sometimes together.
Re:Superfile – A fancy, pretty terminal file manager by moelf on Friday May 10, 2024 @05:27PM (#40323945)
>and they don't also rebind <C-w>. Go from trying to delete a word (backwards) but end up losing a whole session

This is literally why Vim binding for Jupyter doesn't work for me and also why the "terminal" in Jupyter Lab is worse than not existing -- I can't help but press C-w

Re:Superfile – A fancy, pretty terminal file manager by slim on Friday May 10, 2024 @05:35PM (#40324002)
we old vi users don't use key combinations, that's an emacs thing :)
Re:Superfile – A fancy, pretty terminal file manager by godelski on Friday May 10, 2024 @07:01PM (#40324571)
I don't think old means better. I agree that you should use whatever is best for you and makes you more productive (why I doing care about vim vs emacs debates) but I think you're giving up a lot. You're given and unless color blind then you are missing the added dimensions you searching with things like syntax highlighting. All your commands exist in vim, but come on, you've had the last 33 years to update. My configs update as I change too, so I hope that you aren't stuck because I don't like vi for the same reason I don't like GUIs: not all holes are round and not all pegs are square.
Re:Superfile – A fancy, pretty terminal file manager by night_cat on Friday May 10, 2024 @03:29PM (#40322951)
Btw, 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.

Re:Superfile – A fancy, pretty terminal file manager by ghostly_s on Friday May 10, 2024 @03:32PM (#40322981)
I 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.
Re:Superfile – A fancy, pretty terminal file manager by 2024throwaway on Friday May 10, 2024 @05:50PM (#40324120)
k9s does a delete for ctrl+d
Re:Superfile – A fancy, pretty terminal file manager by gray_-_wolf on Saturday May 11, 2024 @10:39AM (#40328383)
With a prompt, asking for confirmation if I recall correctly...
Re:Superfile – A fancy, pretty terminal file manager by opan on Friday May 10, 2024 @08:51PM (#40325168)
In 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.
Re:Superfile – A fancy, pretty terminal file manager by behnamoh on Saturday May 11, 2024 @12:40AM (#40325991)
How do I undo CTRL-d deletes? I almost deleted all my home dir...
Re:Superfile – A fancy, pretty terminal file manager by night_cat on Saturday May 11, 2024 @01:56AM (#40326277)
I am so sorry to hear about that:(

You can go to "~/.local/share/Trash" all files that you deleted are at there

Re:Superfile – A fancy, pretty terminal file manager by StrLght on Friday May 10, 2024 @02:08PM (#40322021)
So there's no confirmation for deletion? Oof, that's probably the most unsafe default I have seen in a while.
Re:Superfile – A fancy, pretty terminal file manager by night_cat on Saturday May 11, 2024 @01:57AM (#40326281)
There will be a prompt for complete deletion, but there will be no prompt for putting it in the trash can.
Re:Superfile – A fancy, pretty terminal file manager by patwie on Friday May 10, 2024 @01:26PM (#40321525)
These key-bindings are pure evil for vim users.
Re:Superfile – A fancy, pretty terminal file manager by gouggoug on Friday May 10, 2024 @01:30PM (#40321574)
Even for non-vim users this default is absolutely horrendous
Re:Superfile – A fancy, pretty terminal file manager by likeclockwork on Friday May 10, 2024 @01:24PM (#40321504)
Holy shit, thanks for the warning.
Re:Superfile – A fancy, pretty terminal file manager by luqtas on Friday May 10, 2024 @03:37PM (#40323025)
what'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
Re:Superfile – A fancy, pretty terminal file manager by twobitshifter on Friday May 10, 2024 @06:33PM (#40324397)
Yes 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.

Re:Superfile – A fancy, pretty terminal file manager by tmtvl on Friday May 10, 2024 @08:23PM (#40325023)
I 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.