diff options
author | Tonus <tonus1@gmail.com> | 2024-02-13 12:31:30 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-02-15 23:56:22 +0700 |
commit | a046c76d436e00630becdf3b6390be27d1e42814 (patch) | |
tree | a17037d6627cc3f6eebe43db7f776da5cbf20d31 /office | |
parent | 2ff4c3ac70c976ce44b17325ea7b5b7828d3c545 (diff) |
office/khal: Updated for version 0.11.3
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-rw-r--r-- | office/khal/README | 11 | ||||
-rw-r--r-- | office/khal/khal-complete.fish | 6 | ||||
-rw-r--r-- | office/khal/khal-complete.zsh | 8 | ||||
-rw-r--r-- | office/khal/khal.SlackBuild | 2 | ||||
-rw-r--r-- | office/khal/khal.info | 6 |
5 files changed, 13 insertions, 20 deletions
diff --git a/office/khal/README b/office/khal/README index 4071b2bfe6f0c..15079c8c83909 100644 --- a/office/khal/README +++ b/office/khal/README @@ -7,13 +7,4 @@ ikhal (interactive khal) lets you browse and edit calendars and events No support for editing the timezones of events yet Works with python 3.6+ -To have completion with click, source the according file for your shell - -in .bashrc -. /usr/doc/khal-*/khal-complete.bash - -in .zshrc -. /usr/doc/khal-*/khal-complete.zsh - -in .fishrc -. /usr/doc/khal-*/khal-complete.fish +Completion with click avaible for bash, zsh and fish diff --git a/office/khal/khal-complete.fish b/office/khal/khal-complete.fish index 9c02b4052bb59..4b2f99448552c 100644 --- a/office/khal/khal-complete.fish +++ b/office/khal/khal-complete.fish @@ -1,9 +1,5 @@ function _khal_completion; - set -l response; - - for value in (env _KHAL_COMPLETE=fish_complete COMP_WORDS=(commandline -cp) COMP_CWORD=(commandline -t) khal); - set response $response $value; - end; + set -l response (env _KHAL_COMPLETE=fish_complete COMP_WORDS=(commandline -cp) COMP_CWORD=(commandline -t) khal); for completion in $response; set -l metadata (string split "," $completion); diff --git a/office/khal/khal-complete.zsh b/office/khal/khal-complete.zsh index 21ce8b86c3b57..8d008ab5d161b 100644 --- a/office/khal/khal-complete.zsh +++ b/office/khal/khal-complete.zsh @@ -31,5 +31,11 @@ _khal_completion() { fi } -compdef _khal_completion khal; +if [[ $zsh_eval_context[-1] == loadautofunc ]]; then + # autoload from fpath, call function directly + _khal_completion "$@" +else + # eval/source/. command, register function for later + compdef _khal_completion khal +fi diff --git a/office/khal/khal.SlackBuild b/office/khal/khal.SlackBuild index c5e3b8966a863..24543adbbc913 100644 --- a/office/khal/khal.SlackBuild +++ b/office/khal/khal.SlackBuild @@ -31,7 +31,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=khal -VERSION=${VERSION:-0.11.2} +VERSION=${VERSION:-0.11.3} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} diff --git a/office/khal/khal.info b/office/khal/khal.info index 34005cb0e650c..c67a534f166ab 100644 --- a/office/khal/khal.info +++ b/office/khal/khal.info @@ -1,8 +1,8 @@ PRGNAM="khal" -VERSION="0.11.2" +VERSION="0.11.3" HOMEPAGE="https://github.com/pimutils/khal/" -DOWNLOAD="https://files.pythonhosted.org/packages/68/ac/e94853c63676a536b3cdd758442a5df678bbe42eed06e46673fc5ba97d72/khal-0.11.2.tar.gz" -MD5SUM="5022402c0954fd16a49812942341f162" +DOWNLOAD="https://files.pythonhosted.org/packages/d3/58/665551b1fea58a70d0f70fb539d2cd6be9ec106f36023d62c3ec5c7b2de1/khal-0.11.3.tar.gz" +MD5SUM="4859fd1fb17b39a0df89a038c2fd388b" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="python3-icalendar python3-atomicwrites configobj tzlocal click click-log" |