4 ms·
> Back in my day, when we pressed Ctrl+S, the terminal froze, and that's just the way we liked it. I don't think anyone needs (or even wants) the terminal to f
by csdvrx 3y ago
> Back in my day, when we pressed Ctrl+S, the terminal froze, and that's just the way we liked it.
I don't think anyone needs (or even wants) the terminal to freeze on such a common shortcut in 2024.
Personally, I have reclaimed Ctrl S for word delete (usually done by Alt-d)
- aidenn0 3y agoRelated: why does the shortcut to delete back a word (^W), close my browser tab?
- pests 3y agoDelete current word, delete current tab. Its related.
- troupo 3y agoThat's why I think MacOS is superior: it actually uses the "meta" key for useful stuff. So, Cmd-W would close the tab, and Ctrl-W would probably still delete a word (can't check right now, but it has a lot of 80s-era keyboard shortcuts for text still working)
- bloopernova 3y agomacOS uses a lot of Emacs bindings. Ctrl-a for beginning of line, ctrl-e for end, etc etc. And, agreed, macOS' use of shortcuts is fantastic and I wish I could replicate it on Linux.
- anthk 3y agoIf you use gnome/xfce: gsettings set org.gnome.desktop.interface gtk-key-theme "Emacs" xfconf-query -c xsettings -p /Gtk/KeyThemeName -s Emacs Try both commands.
- bloopernova 3y agoVery cool! I also want to use Command (Super or Hyper?), which really improves keyboard shortcuts. Command + left/right = jump to beginning or end of line, Option + left/right = jump to beginning/end of word. I know you can do the same with Control + Shift, but some apps don't support it. Plus Cmd+c/x/v for copy/cut/paste works fine in terminals, I don't have to remember to "code switch" my shortcut "language". Cmd+Backspace deletes the whole line, etc etc.
- anthk 3y agoI just swap Ctrl and Caps Lock, much better. setkbmap us -option ctrlL:swapcaps -option compose:rwin You can place that command at XFCE's startup settings for applications.
- aidenn0 3y agoYou missed the point; Ctrl-C is never going to be "copy" in a terminal, since that shortcut is already in use. Cmd-C can work everywhere, but GUI applications on linux do not default to that.
- csdvrx 3y ago> You missed the point; Ctrl-C is never going to be "copy" in a terminal, since that shortcut is already in use My `stty intr ^X` disagrees I've made Ctrl-C do copy paste in the terminal, even in vim, with a special function for wayland: vnoremap <C-C> <CMD>call WLCopy()<CR>
- aidenn0 3y agoI bound WindowsKey-C to run the command "xsel|xsel -b" which copies the active selection to the clipboard. It's a small step in the right direction; it's possible to get paste working as well, but that takes awareness of apps (or reconfiguring all GUI applications to use the same shortcut as the terminal).
- artsi0m 3y agoI use emacs and I respect emacs developers, but it is not originally emacs bindings: http://unix-kb.cat-v.org/ http://unix-kb.cat-v.org/
- airspresso 3y agoThis still happens to me too often. Especially annoying in web-based editors.
- cerved 3y agoit also switches focus window, which is makes things even more confusing
- whackx 3y agoThat gets me multiple times a day. What is even worse is ^h opens the history instead of just deleting the last character.
- shiomiru 3y ago> I don't think anyone needs (or even wants) the terminal to freeze on such a common shortcut in 2024. I find it rather useful to keep important output of programs on the screen when it is impossible (or I forget) to pipe them into a pager.
- kamray23 3y agoSuper helpful for basically anything in a terminal. Stuff is going to flow by pretty quickly or at least keep bumping the terminal every couple seconds, usually when you _least_ want it to do so. Reading off whatever your program emitted while it's pushing the terminal up every half a second gets really annoying without Ctrl-S. It's probably the most used terminal shortcut after Ctrl-C for me.
- yencabulator 3y agoThat's a fine argument, but not relevant for when you're in an editor -- and modern TUI apps disable XON/XOFF for that reason.