5 ms·
Now I need a decent terminal (iTerm2-like quality) and a sane set of shortcuts (like a shortcut for "Copy" that doesn't stop processes in terminal) and I'd be a
by maratc 10y ago
Now I need a decent terminal (iTerm2-like quality) and a sane set of shortcuts (like a shortcut for "Copy" that doesn't stop processes in terminal) and I'd be all set...
- CGamesPlay 10y agoThis is probably the #1 reason why I still want to use mac OS every day. Emacs-style editing shortcuts and not having to press Ctrl-Shift-C to copy when I'm in my terminal window (alternatively, not having to remember to press Ctrl-Shift-C to copy but only when I'm in my terminal window).
- pritambaral 10y agoAs a long-time user of the terminal, I just don't get this complaint. I haven't had to "remember" to press the right keys, my muscle memory understands the context I'm in and simply takes care of it. Is this really that big a deal? I am genuinely curious.
- maratc 10y agoOn macOS, we don't need context because many shortcuts work the same everywhere. That might be a reason why our muscle memory hasn't been developed to "understand the context". Erasing all of your muscle memory and starting anew is a big deal, yes.
- Gracana 10y agoYep, I really like this about Mac OS X. The fact that I can c-w to kill a word anywhere or c-u to kill a line is pretty nice. And OS-level copy/paste has the same shortcut everywhere, like you say. I think it was a mistake for Windows and linux to use control as the default meta-character for gui operations. I always switch it to super if I can.
- kps 10y agoIt is unfortunate that the ‘desktop Linux’ groups all came from Windows backgrounds and ignored all the previous Unix windowing systems, most of which knew better than to screw up terminal emulation. Qt has a flag to use the GUI key for shortcuts, but it's hard-wired to the platform. I keep hoping there will be enough OS X refugees to make it a user-configurable setting.
- pritambaral 10y agoI haven't looked myself, because my muscle memory has always been reliably aware of the context, but I don't think it would be that hard to find a good terminal emulator on Linux that can be configured to send SIGINT on something other than Ctrl-C and to use Ctrl-C itself for copying.
- maratc 10y ago...until you open Vim and find out that Ctrl-V doesn't paste.
- pritambaral 10y agoAnd you can't remap things in Vim because ... ?
- maratc 10y agoWell, I can remap things, but then it wouldn't work on a remote aws machine, or at my colleague's machine, etc. And this is not only Vim. Having a system-wide set of shortcuts without having to fight the system is extremely powerful. I have suggested Win-C/Win-V to the elementaryOS guys -- as an addition, not a replacement -- but they weren't interested.
- pritambaral 10y ago> Well, I can remap things, but then it wouldn't work on a remote aws machine, or at my colleague's machine, etc. And this is not only Vim. Hmm, backtracking to my grandparent comment, if you can map the terminal emulator to do the equivalent of C-c upon C-S-c, then why not do the same with C-v and C-S-v. Just send the ASCII keysequence for C-v down the shell. ---- > Having a system-wide set of shortcuts without having to fight the system is extremely powerful. This follows the exact same argument OS X has to not using Ctrl-c, Ctrl-x, and Ctrl-v for copy, cut, and paste: history. When I first used OS X, coming from a Windows and GUI Linux keyboard usage background, I found that odd similarly to how OS X terminal users find Linux's terminal shortcuts. But hey, historical decisions have stuck. And it's not that hard to commit to muscle memory a few platform differences here and there. There certainly are many OSX-isms a not-primarily-OSX user has to deal with.
- e12e 10y agoI've been pretty happy with the "sakura" terminal[s] - I don't really know iTerm2, though, so I'm not sure what "iTerm2-like quality" means, or if Sakura matches (or surpasses, for that matter) it. I'm not sure why you need a shortcut for copy, select copies by default on linux[x11] - middle-button pastes (or shift-insert). [s] http://www.pleyades.net/david/projects/sakura http://www.pleyades.net/david/projects/sakura [x11] https://www.debian.org/doc/manuals/debian-reference/ch01.en.html#_unix_style_mouse_operations https://www.debian.org/doc/manuals/debian-reference/ch01.en....
- maratc 10y agoSelect means working with a mouse? Thanks, but no thanks. Also, where would a middle button be on a trackpad?
- angry-hacker 10y agoThree fingers?
- maratc 10y agoI think that would necessitate at least a multitouch trackpad, and I frankly don't know what is the state of things in the Dell land with regards to that.
- e12e 10y agoHow do you usually select text to copy in iTerm, if not with a pointing device?
- maratc 10y agoFirst option is, with a trackpad on my Macbook, as that has minimum travel distance from where my fingers are already are. It's literally can be done within 3-5 cm moving distance. Second option is, pipe something to pbcopy, and it's put on the clipboard. But it's not necessary that I copy from iTerm; maybe I have something on the clipboard and want to paste it into iTerm.
- endisukaj 10y agoGNOME terminal uses Ctrl-Shift-C to copy from the terminal... You can also configure urxvt to copy whatever you highlight.
- maratc 10y agoBut every other Gnome application uses Ctrl-C to copy. Now I need to constantly follow whether I am in terminal or somewhere else, and invoke shortcut A or shortcut B depending on that.