diff options
author | Robin Jarry <robin@jarry.cc> | 2022-10-12 00:55:49 +0200 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-10-16 11:35:20 +0200 |
commit | c95961fc74585b4284441863c2ebc77a31ea7332 (patch) | |
tree | 9d087fbcde3920dbb39d0f6fed405cb748f74bfa /CHANGELOG.md | |
parent | 9cf69747ebc9b7d1504e07cec02866e748d57377 (diff) | |
download | aerc-c95961fc74585b4284441863c2ebc77a31ea7332.tar.gz |
filters: append well known dirs to exec PATH
To allow referencing built-in filters without hard coding a path during
installation, append the following folders to the exec PATH when running
the filter commands:
~/.config/aerc/filters
~/.local/share/aerc/filters
$PREFIX/share/aerc/filters
/usr/share/aerc/filters
If a filter script has the same name than a command in the default exec
PATH, it will not shadow it. In that edge case, the absolute path to the
filter script must be specified.
Suggested-by: Teo Luppi <me@luppi.uk>
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Moritz Poldrack <moritz@poldrack.dev>
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index e897e4b1..0fed1e0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -28,6 +28,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). history. - Embedded terminal backend (libvterm was replaced by a pure go implementation). - Use event driven loop instead of Tick based +- Filter commands are now executed with + `:~/.config/aerc/filters:~/.local/share/aerc/filters:$PREFIX/share/aerc/filters:/usr/share/aerc/filters` + appended to the exec `PATH`. This allows referencing aerc's built-in filter + scripts from their name only. ### Fixed |