[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C-c C-, in a terminal?
Re: C-c C-, in a terminal?
Wed, 29 Dec 2021 01:24:16 -0500
Awesome reply, just was lurking in this thread, and wanted to actually provide a link to what you mentioned since it looks like a cool package I might even want to try as well:
Reason being is that I actually wanted to explore running Emacs in purely a terminal setup since I actually don't use images that much compared to most people.
I know there are benefits to maybe inserting screenshots in notes, or viewing images via 'eww' but I don't really actually need it for my workflow, so running Emacs in 'xterm' or even something as heavy as Cool Retro Term sounds mega fun.
Anyway, didn't know about that package above, thanks for mentioning that one!
I also agree though that the exact replacement for the default keybinding is a hard topic.
I'm not sure if this helps, but I'm including a bunch of links I was able to research on this topic just in case this helps you out:
Not sure if this totally relates, but since you're trying to use your terminal as an all-in-one, you might even want to check out 'Twin' as well since it can act as a Desktop Environment:
On Tue, Dec 28, 2021, at 6:58 PM, Tim Cross wrote:
> Hi all, while it's not an ORG mode question exactly, I have a problem
> with org-insert-structure-template and it's default shortcut, C-c C-, in
> As C-, isn't usually a control character in a terminal, terminals send
> just the comma if I hit C-,. Some terminals (at least wsltty) do send
> some kind of control sequence but I don't know if mapping other
> terminals to do the same (Konsole and urxvt at least) and changing the
> keys for Emacs makes sense. I'd have to do it for every terminal I ever
> Alternatively, any suggestions for a more terminal friendly key
> combination for org-insert-structure-template in Emacs?
It is almost impossible to suggest an alternative key binding because
there are just too many variables involved. What you can use will depend
on what window manager you use and the key shortcuts it uses (which will
'steal' keys before Emacs get to see them) and on the terminal emulator
and the remote access protocol (i.e. ssh, telnet, tmux, screen etc) you
use. Then there is differences depending on what Emacs packages you are
using and what (if any) key bindings you have already defined and
whether they are global or local definitions etc.
My suggestion would be to use something like the free-keys (available in
melpa) package to identify what key bindings are available when in an
org buffer and select one of those. It may also be worthwhile
considering using something like hydra. You could define an org specific
hydra and associate all your preferred bindings to that hydra. Org can
be particularly challenging because it already has some complex key
bindings, so avoiding unexpected side effects when adding/changing
bindings can be a challenge.
- C-c C-, in a terminal?, Anssi Saari, 2021/12/28
- Re: C-c C-, in a terminal?, Vincent Breton, 2021/12/28
- Re: C-c C-, in a terminal?, Tim Cross, 2021/12/28
- Re: C-c C-, in a terminal?,
Samuel Banya <=
- Re: C-c C-, in a terminal?, Max Nikulin, 2021/12/29