From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:203:b4db::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id +EhqLNX/y2FwWgEAgWs5BA (envelope-from ) for ; Wed, 29 Dec 2021 07:27:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mMXSKdX/y2HIWgAA9RJhRA (envelope-from ) for ; Wed, 29 Dec 2021 07:27:33 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7C31ABFC5 for ; Wed, 29 Dec 2021 07:27:32 +0100 (CET) Received: from localhost ([::1]:42416 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n2SQt-0004V5-GF for larch@yhetil.org; Wed, 29 Dec 2021 01:27:31 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2SOF-0004TT-FT for emacs-orgmode@gnu.org; Wed, 29 Dec 2021 01:24:48 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:58291) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n2SO8-00042g-U7 for emacs-orgmode@gnu.org; Wed, 29 Dec 2021 01:24:46 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id 5BEFA3200E51 for ; Wed, 29 Dec 2021 01:24:37 -0500 (EST) Received: from imap49 ([10.202.2.99]) by compute3.internal (MEProxy); Wed, 29 Dec 2021 01:24:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= mime-version:message-id:in-reply-to:references:date:from:to :subject:content-type; s=fm1; bh=ArIKTOvFtTSe15VCvJLFTvwAVv5Lqm/ nWdSiLnROlB8=; b=krDigoy+XeZ8ePj8AyEHIhURcZjZu7EMxFH8FQ2lJV4vlU0 Go6LHUgfWo9EKdr5B4mzXnakGTlMEdNbAZ6iLtrs3ti/uQUTz74erNaS5BnlmSVO bqgoqoq+XrbqymDN1DjILREa0tefeyGklTJG64GSJTSeZFijTqY+YZmdffGz8ibN I6kZszEyLgN5ASwZC79m+FPKYFY3gn+GxEgycxt4z7m567KcWEWm38r/5eApFQP5 IddY6xmETF8JbntHNIFtlqISeLRFsQI/GvQPUZnHkOgfs9D0XbzXx7K840dgk88d ZRj72zpVGtMgZeacQvobyu9eBRq8gx9+1+DOJMQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ArIKTO vFtTSe15VCvJLFTvwAVv5Lqm/nWdSiLnROlB8=; b=XOiNlQ+f/gOL+T5M4sV6L2 IQgi4a4PXAClFjEdLY6MtzE8sNJLkbfNA+1d73JG1jw5fcM4kow6O8YpLZix8zmb UL7JHYus6TniIIuehnKiSoZ2bhTq/odoH89i2ZklCC8BYhFPGoq+pcZ7I09zOLAb Wvwm3zOuJUFeIyIm0GvGwiqzvwWQqKvkvGhceYudLQaORvXoUGLGKZMKQEkA9JUY uSI4GOLOSae2ehgStA0ZceIuLBMknKiNpVWq1bGPbFkqowyQbmQrlOAjO+tuFwAx uymWPRHQVeZS6ddYGNJorYAulwvtvg+zl8jm0xuVb3NjF0zcXd6ZXyexQ8XXw6xQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddruddvtddgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerredtnecuhfhrohhmpedfufgrmhhuvghluceurghnhigrfdcuoehssggrnhihrges fhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpefhudelvedutdehueejfe euieegkedthffgueeiudfgffelheffgeehudeuffehtdenucffohhmrghinhepmhgvlhhp rgdrohhrghdprghlihhquhhothgvrdhorhhgpdigkeeisghlohhgrdgtohhmpdhquhhorh grrdgtohhmpdhlihhnuhigqhhuvghsthhiohhnshdrohhrghdpghhithhhuhgsrdgtohhm pdhhhigurhgrrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepshgsrghnhigrsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id A5C65F60074; Wed, 29 Dec 2021 01:24:36 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-4525-g8883000b21-fm-20211221.001-g8883000b Mime-Version: 1.0 Message-Id: <0e4ca02c-2bad-4c16-9b41-4aa3933af0c0@www.fastmail.com> In-Reply-To: <87tues1afe.fsf@gmail.com> References: <87tues1afe.fsf@gmail.com> Date: Wed, 29 Dec 2021 01:24:16 -0500 From: "Samuel Banya" To: "Charles Berry" Subject: Re: C-c C-, in a terminal? Content-Type: multipart/alternative; boundary=1cf1b4f3cfef47cb811910581e7ad534 Received-SPF: pass client-ip=64.147.123.25; envelope-from=sbanya@fastmail.com; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640759253; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ArIKTOvFtTSe15VCvJLFTvwAVv5Lqm/nWdSiLnROlB8=; b=ksxwxnMpRi/jPN4C0C9N2SXE+waodRbPp9nvGn5R5FitQ90EDhQggqMpFCep1NB6PKgZzb djuzdjLQ3NWraq16YRwkCME/l+kuAva6M0oSr9zVZj+rzcdwvIvfO0N+CA6QZ074an9GV1 xaDAIEWL3+z7vqXbyctu9SuPA9coCPffJ1ST+Q12TYAGSWAVgfR+jDkMtdQii4zH8iG+7D ZxgnJ8ToYRKJRa9qeDUixFUqvVdXhY0RrjwJThpAITsYyUz0e+hw9A44RR5zbttjh8IX1S rgcR/jS4IjGCEl4RKMn5BIkomGYOk6+iOWyvH4ZrPCTqcszznsVyGx4bpd2SiA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640759253; a=rsa-sha256; cv=none; b=ZaHIQ1YSh8i312Px0e6eZn/gvJ7LyJSRinI1Ss5qkPWzXlJyNBK6Wq26S/gFnbQ2jng9xH qYco7Hne3g8KJyJKQN2nuK8uAuKoG+MD4W6cDm1LWCuOlofX74nXgncj7W9iZy4SUPjbGT 0U8UA8ooCgO1Vi59PweL2BZkTsyUWx2WlNertI7GJQnTNf8dfmfdaO82Vc1qb9wHj2P9QK B5OfFIqwSNvBKYGNwFUYeE6D1sf23skt4A4ls3XpGWrXVx+ExakahUYUUaGjPSGc3XvBDk ipcvnQJT7LsV9scz0J+j35lXxCuV+M3AwzjRARnd09wctAOoAchLHEu8keDEgQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm1 header.b=krDigoy+; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=XOiNlQ+f; dmarc=pass (policy=none) header.from=fastmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.36 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.com header.s=fm1 header.b=krDigoy+; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=XOiNlQ+f; dmarc=pass (policy=none) header.from=fastmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7C31ABFC5 X-Spam-Score: -3.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: PfN7UVdBoUdv --1cf1b4f3cfef47cb811910581e7ad534 Content-Type: text/plain Hey Annsi, 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: - https://melpa.org/#/free-keys 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: - https://aliquote.org/post/emacs-in-terminal/ - https://x86blog.com/emacs-an-ide-for-the-terminal/ - https://www.quora.com/Whats-the-best-way-to-use-Emacs-as-a-GUI-application-or-running-in-the-terminal?share=1 - https://www.linuxquestions.org/questions/linux-software-2/emacs-in-a-terminal-problems-with-ctrl-815964/ - https://github.com/purcell/exec-path-from-shell 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: - https://github.com/cosmos72/twin Sincerely, Sam On Tue, Dec 28, 2021, at 6:58 PM, Tim Cross wrote: > > Anssi Saari writes: > > > 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 > > terminals. > > > > 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 > > use. > > > > 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. > > > --1cf1b4f3cfef47cb811910581e7ad534 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
Hey Annsi,
<= /div>

Awesome reply, just was lurking in this thread,= and wanted to actually provide a link to what you mentioned since it lo= oks like a cool package I might even want to try as well:

Reason being is that I actually wante= d to explore running Emacs in purely a terminal setup since I actually d= on't use images that much compared to most people.

I know there are benefits to maybe inserting screenshots in note= s, or viewing images via 'eww' but I don't really actually need it for m= y workflow, so running Emacs in 'xterm' or even something as heavy as Co= ol 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 fo= r 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:
- https://ali= quote.org/post/emacs-in-terminal/
- https://www.quora.com/Whats-the-best-way-to-use-= Emacs-as-a-GUI-application-or-running-in-the-terminal?share=3D1
<= /div>

Not sure if this totally relates, but sin= ce you're trying to use your terminal as an all-in-one, you might even w= ant to check out 'Twin' as well since it can act as a Desktop Environmen= t:

Sincerely,
=

Sam

On Tue, Dec 2= 8, 2021, at 6:58 PM, Tim Cross wrote:

Anssi Saari <as@sci.fi> writes:

&g= t; 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
> terminals.
>
> As C-, isn't usually a control character in a terminal,= terminals send
> just the comma if I hit C-,. Some ter= minals (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
<= div>> keys for Emacs makes sense. I'd have to do it for every termina= l I ever
> use.
>
> A= lternatively, 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 inv= olved. 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 et= c) you
use. Then there is differences depending on what Em= acs packages you are
using and what (if any) key bindings = you have already defined and
whether they are global or lo= cal 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 une= xpected side effects when adding/changing
bindings can be = a challenge. 




--1cf1b4f3cfef47cb811910581e7ad534--