~rjarry/aerc-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
3 3

[PATCH aerc] binds: allow per folder sections for the message viewer

Details
Message ID
<20240610192615.316726-2-robin@jarry.cc>
DKIM signature
pass
Download raw message
Patch: +5 -2
Allow creating [view:folder=FooBar] in binds.conf.

Changelog-added: Per folder key bindings can now be defined for the
 message viewer.
Requested-by: Matěj Cepl <mcepl@cepl.eu>
Signed-off-by: Robin Jarry <robin@jarry.cc>
---
 app/aerc.go          | 6 ++++--
 doc/aerc-binds.5.scd | 1 +
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/app/aerc.go b/app/aerc.go
index 3f2c9b325520..b6bc2430ad72 100644
--- a/app/aerc.go
+++ b/app/aerc.go
@@ -265,14 +265,16 @@ func (aerc *Aerc) getBindings() *config.KeyBindings {
		}
		return binds.ForFolder(view.SelectedDirectory())
	case *MessageViewer:
		var binds *config.KeyBindings
		switch view.Bindings() {
		case "view::passthrough":
			return config.Binds.MessageViewPassthrough.ForAccount(
			binds = config.Binds.MessageViewPassthrough.ForAccount(
				selectedAccountName)
		default:
			return config.Binds.MessageView.ForAccount(
			binds = config.Binds.MessageView.ForAccount(
				selectedAccountName)
		}
		return binds.ForFolder(view.SelectedAccount().SelectedDirectory())
	case *Terminal:
		return config.Binds.Terminal
	default:
diff --git a/doc/aerc-binds.5.scd b/doc/aerc-binds.5.scd
index de8f436c19f0..4dbc6c6165c8 100644
--- a/doc/aerc-binds.5.scd
+++ b/doc/aerc-binds.5.scd
@@ -72,6 +72,7 @@ You may also configure account specific key bindings for each context:
Folder and context-specific bindings can be configured for message lists:

*[messages:folder=*_FolderName_*]*++
*[view:folder=*_FolderName_*]*++
*[compose:folder=*_FolderName_*]*++
*[compose::editor:folder=*_FolderName_*]*++
*[compose::review:folder=*_FolderName_*]*
-- 
2.45.2

[aerc/patches] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<D1WL3LF4WJO5.90I0SC0WMJAC@fra01>
In-Reply-To
<20240610192615.316726-2-robin@jarry.cc> (view parent)
DKIM signature
missing
Download raw message
aerc/patches: SUCCESS in 2m14s

[binds: allow per folder sections for the message viewer][0] from [Robin Jarry][1]

[0]: https://lists.sr.ht/~rjarry/aerc-devel/patches/53215
[1]: robin@jarry.cc

✓ #1247520 SUCCESS aerc/patches/alpine-edge.yml https://builds.sr.ht/~rjarry/job/1247520
✓ #1247521 SUCCESS aerc/patches/openbsd.yml     https://builds.sr.ht/~rjarry/job/1247521
Details
Message ID
<D1WMDQIC9BS7.P538XYJLM4Y7@cepl.eu>
In-Reply-To
<20240610192615.316726-2-robin@jarry.cc> (view parent)
DKIM signature
pass
Download raw message
Tested-by: Matěj Cepl <mcepl@cepl.eu>

-- 
http://matej.ceplovi.cz/blog/, @mcepl@floss.social
GPG Finger: 3C76 A027 CA45 AD70 98B5  BC1D 7920 5802 880B C9D8
 
understand, v.:
    To reach a point, in your investigation of some subject, at
    which you cease to examine what is really present, and
    operate on the basis of your own internal model instead.
Details
Message ID
<D27OEM663Z2P.1C0YJ2XXRTBZ9@ringo>
In-Reply-To
<D1WMDQIC9BS7.P538XYJLM4Y7@cepl.eu> (view parent)
DKIM signature
pass
Download raw message
Matěj Cepl, Jun 10, 2024 at 22:29:
> Tested-by: Matěj Cepl <mcepl@cepl.eu>

Applied. Thanks!
Reply to thread Export thread (mbox)