https://jonathanbartlett.co.uk
From Jonathan Bartlett to ~rjarry/aerc-devel
When using aerc for multiple accounts often bindings might differ
slightly between accounts. For example:
* Account A archives to one directory (:archive)
* Account B archives to monthly directories (:archive month)
Add account specific bindings to allow the user to add a "context" to a
binding group using a context specifier and a regular expression.
Currently the only context specifier is 'account'.
The regular expression is validated against the accounts loaded from
accounts.conf and the configuration fails to load if there are no
matches.
[message trimmed]
From Jonathan Bartlett to ~rjarry/aerc-devel
--- I had not merged the fork into my working copy so I believe v8 did not work. config/bindings.go | 22 +++++ config/config.go | 207 +++++++++++++++++++++++++++++++----------- doc/aerc-config.5.scd | 15 +++ widgets/aerc.go | 14 ++- 4 files changed, 200 insertions(+), 58 deletions(-) diff --git a/config/bindings.go b/config/bindings.go index eff48a6..62956d7 100644 --- a/config/bindings.go +++ b/config/bindings.go @@ -55,6 +55,28 @@ func MergeBindings(bindings ...*KeyBindings) *KeyBindings { [message trimmed]
From Jonathan Bartlett to ~rjarry/aerc-devel
--- This version allows global binds to be overriden on a per account basis. config/bindings.go | 22 +++++ config/config.go | 207 +++++++++++++++++++++++++++++++----------- doc/aerc-config.5.scd | 15 +++ widgets/aerc.go | 14 ++- 4 files changed, 200 insertions(+), 58 deletions(-) diff --git a/config/bindings.go b/config/bindings.go index 9956b41..0ce9b9d 100644 --- a/config/bindings.go +++ b/config/bindings.go @@ -54,6 +54,28 @@ func MergeBindings(bindings ...*KeyBindings) *KeyBindings { [message trimmed]
From Jonathan Bartlett to ~sircmpwn/aerc
--- config/bindings.go | 22 +++++ config/config.go | 205 +++++++++++++++++++++++++++++++----------- doc/aerc-config.5.scd | 15 ++++ widgets/aerc.go | 14 +-- 4 files changed, 198 insertions(+), 58 deletions(-) diff --git a/config/bindings.go b/config/bindings.go index 9956b41..23a082e 100644 --- a/config/bindings.go +++ b/config/bindings.go @@ -54,6 +54,28 @@ func MergeBindings(bindings ...*KeyBindings) *KeyBindings { return merged } [message trimmed]
From Jonathan Bartlett to ~sircmpwn/aerc
Changes from v5: - Fixed global binding inheritance bug --- config/bindings.go | 22 +++++ config/config.go | 195 ++++++++++++++++++++++++++++++------------ doc/aerc-config.5.scd | 15 ++++ widgets/aerc.go | 14 +-- 4 files changed, 188 insertions(+), 58 deletions(-) diff --git a/config/bindings.go b/config/bindings.go index 9956b41..23a082e 100644 --- a/config/bindings.go +++ b/config/bindings.go [message trimmed]
From Jonathan Bartlett to ~jonnobrow/public-inbox
--- config/bindings.go | 22 +++++ config/config.go | 195 ++++++++++++++++++++++++++++++------------ doc/aerc-config.5.scd | 15 ++++ widgets/aerc.go | 14 +-- 4 files changed, 188 insertions(+), 58 deletions(-) diff --git a/config/bindings.go b/config/bindings.go index 9956b41..23a082e 100644 --- a/config/bindings.go +++ b/config/bindings.go @@ -54,6 +54,28 @@ func MergeBindings(bindings ...*KeyBindings) *KeyBindings { return merged } [message trimmed]
From Jonathan Bartlett to ~jonnobrow/public-inbox
--- config/bindings.go | 22 +++++ config/config.go | 195 ++++++++++++++++++++++++++++++------------ doc/aerc-config.5.scd | 15 ++++ widgets/aerc.go | 14 +-- 4 files changed, 188 insertions(+), 58 deletions(-) diff --git a/config/bindings.go b/config/bindings.go index 9956b41..23a082e 100644 --- a/config/bindings.go +++ b/config/bindings.go @@ -54,6 +54,28 @@ func MergeBindings(bindings ...*KeyBindings) *KeyBindings { return merged } [message trimmed]
From Jonathan Bartlett to ~sircmpwn/aerc
--- config/bindings.go | 22 ++++++ config/config.go | 178 ++++++++++++++++++++++++++++++------------ doc/aerc-config.5.scd | 15 ++++ widgets/aerc.go | 14 ++-- 4 files changed, 173 insertions(+), 56 deletions(-) diff --git a/config/bindings.go b/config/bindings.go index 9956b41..23a082e 100644 --- a/config/bindings.go +++ b/config/bindings.go @@ -54,6 +54,28 @@ func MergeBindings(bindings ...*KeyBindings) *KeyBindings { return merged } [message trimmed]
From Jonathan Bartlett to ~sircmpwn/aerc
Account specific bindings now follows the same structure as contextual UI configuration. It also supports regular expressions and provides a base for further binding subcontexts in the future. --- config/bindings.go | 22 ++++ config/config.go | 240 ++++++++++++++++++++++-------------------- doc/aerc-config.5.scd | 10 +- widgets/aerc.go | 52 ++------- 4 files changed, 166 insertions(+), 158 deletions(-) diff --git a/config/bindings.go b/config/bindings.go index 9956b41..23a082e 100644 --- a/config/bindings.go +++ b/config/bindings.go [message trimmed]
From Jonathan Bartlett to ~sircmpwn/aerc
--- config/config.go | 176 +++++++++++++++++++++++------------------------ widgets/aerc.go | 82 +++++++++++----------- 2 files changed, 129 insertions(+), 129 deletions(-) diff --git a/config/config.go b/config/config.go index 3ecf2b7..4f39f29 100644 --- a/config/config.go +++ b/config/config.go @@ -90,19 +90,19 @@ type AccountConfig struct { } type BindingConfig struct { Global *BindingGroup [message trimmed]