summaryrefslogtreecommitdiffstats
path: root/office
diff options
context:
space:
mode:
author Tonus2024-02-13 12:31:30 +0100
committer Willy Sudiarto Raharjo2024-02-15 17:56:22 +0100
commita046c76d436e00630becdf3b6390be27d1e42814 (patch)
treea17037d6627cc3f6eebe43db7f776da5cbf20d31 /office
parent2ff4c3ac70c976ce44b17325ea7b5b7828d3c545 (diff)
downloadslackbuilds-a046c76d436e00630becdf3b6390be27d1e42814.tar.gz
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/README11
-rw-r--r--office/khal/khal-complete.fish6
-rw-r--r--office/khal/khal-complete.zsh8
-rw-r--r--office/khal/khal.SlackBuild2
-rw-r--r--office/khal/khal.info6
5 files changed, 13 insertions, 20 deletions
diff --git a/office/khal/README b/office/khal/README
index 4071b2bfe6..15079c8c83 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 9c02b4052b..4b2f994485 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 21ce8b86c3..8d008ab5d1 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 c5e3b8966a..24543adbbc 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 34005cb0e6..c67a534f16 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"