aboutsummaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-29 19:05:49 +0200
committerDanilo M. <danix@danix.xyz>2026-09-29 19:05:49 +0200
commite4aa085a74b10cdb74d0ea2aa5105da7de397aa4 (patch)
tree426fcf702b6bed44bf5e29227eb75aed24d91c70 /src/CMakeLists.txt
parentbed9d291370b2b198b2d146c7081066b6dd70641 (diff)
downloadqtmaildir-e4aa085a74b10cdb74d0ea2aa5105da7de397aa4.tar.gz
qtmaildir-e4aa085a74b10cdb74d0ea2aa5105da7de397aa4.zip
feat: bash completion for the launch selectors
Completes the options, and the account keys after --account, read from the [account.<key>] sections of the config the application itself reads. Thread and message ids are deliberately not completed: offering them means querying the whole notmuch index on every Tab, which on a real Maildir is tens of thousands of ids nobody would pick from a list anyway. Installed under share/bash-completion/completions, where bash-completion loads a command's file on demand by name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4a344d5..5d41342 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -113,3 +113,7 @@ install(FILES ${CMAKE_SOURCE_DIR}/assets/icons/qtmaildir.svg
DESTINATION share/icons/hicolor/scalable/apps)
install(FILES ${CMAKE_SOURCE_DIR}/assets/qtmaildir.desktop
DESTINATION share/applications)
+# bash-completion loads a command's file on demand from this directory, by name.
+install(FILES ${CMAKE_SOURCE_DIR}/assets/qtmaildir.bash-completion
+ DESTINATION share/bash-completion/completions
+ RENAME qtmaildir)