aboutsummaryrefslogtreecommitdiffstats
path: root/src/_kak
diff options
context:
space:
mode:
authorShohei YOSHIDA <syohex@gmail.com>2022-11-16 20:34:14 +0900
committerShohei YOSHIDA <syohex@gmail.com>2022-11-16 20:34:14 +0900
commit7cea53d40d97e909b06a4d75170d37c2eea4b62e (patch)
treec75b54005062d3519fb262681aa721c06c874f7a /src/_kak
parentMerge pull request #919 from zsh-users/update-grances (diff)
downloadzsh-completions-7cea53d40d97e909b06a4d75170d37c2eea4b62e.tar
zsh-completions-7cea53d40d97e909b06a4d75170d37c2eea4b62e.tar.gz
zsh-completions-7cea53d40d97e909b06a4d75170d37c2eea4b62e.tar.bz2
zsh-completions-7cea53d40d97e909b06a4d75170d37c2eea4b62e.tar.lz
zsh-completions-7cea53d40d97e909b06a4d75170d37c2eea4b62e.tar.xz
zsh-completions-7cea53d40d97e909b06a4d75170d37c2eea4b62e.tar.zst
zsh-completions-7cea53d40d97e909b06a4d75170d37c2eea4b62e.zip
Update kak completion
Diffstat (limited to 'src/_kak')
-rw-r--r--src/_kak49
1 files changed, 28 insertions, 21 deletions
diff --git a/src/_kak b/src/_kak
index 6079f36..19faeee 100644
--- a/src/_kak
+++ b/src/_kak
@@ -1,6 +1,6 @@
#compdef kak
# ------------------------------------------------------------------------------
-# Copyright (c) 2017 Github zsh-users - http://github.com/zsh-users
+# Copyright (c) 2017 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -28,7 +28,7 @@
# Description
# -----------
#
-# Completion script for kak (https://github.com/mawww/kakoune)
+# Completion script for kak 2022.10.31 (https://github.com/mawww/kakoune)
#
# ------------------------------------------------------------------------------
# Authors
@@ -37,9 +37,6 @@
# * Frank LENORMAND <https://github.com/lenormf>
#
# ------------------------------------------------------------------------------
-# -*- mode: zsh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
-# vim: ft=zsh sw=2 ts=2 et
-# ------------------------------------------------------------------------------
_kak_sessions() {
local -a session_ids expl
@@ -50,22 +47,32 @@ _kak_sessions() {
_kak() {
_arguments \
- '-n[do not source rc files on startup]' \
- '-l[list existing sessions]:session_id:_kak_sessions' \
- '-clear[clear dead sessions]' \
- '-ro[readonly mode]' \
- '(-help --help)'{-help,--help}'[display a help message and quit]' \
- '-d[run as a headless session (requires -s)]' \
- '-q[in filter mode, be quiet about errors applying keys]' \
- '-c[connect to given session]:session_id:_kak_sessions' \
- '-e[execute argument on client initialisation]:keys' \
- '-E[execute argument on server initialisation]:keys' \
- '-s[set session name]:session_id' \
- '-p[just send stdin as commands to the given session]:session_id:_kak_sessions' \
- '-f[act as a filter, executing given keys on given files]:keys' \
- '-i[backup the files on which a filter is applied using the given suffix]:suffix' \
- '-ui[set the type of user interface to use (ncurses, dummy, or json)]:ui_type:(ncurses dummy json)' \
- '*::files:_files'
+ '-c[connect to given session]:session_id:_kak_sessions' \
+ '-e[execute argument on client initialization phase]:keys' \
+ '-E[execute argument on server initialization]:keys' \
+ "-n[do not load the system's kakrc]" \
+ '-s[set the current session name]:session_id' \
+ '-d[run as a headless session (requires -s)]' \
+ '-p[just send stdin as commands to the given session]:session_id:_kak_sessions' \
+ "-f[enter in 'filter mode':select the whole file, then execute keys]:keys" \
+ '-i[backup the files on which a filter is applied using the given suffix]:suffix' \
+ '-q[in filter mode, do not print any errors]' \
+ '-ui[set the type of user interface to use (ncurses, dummy, or json)]:ui_type:(ncurses dummy json)' \
+ '-l[list existing sessions]:session_id:_kak_sessions' \
+ '-clear[clear dead sessions]' \
+ '-debug[initial debug option value]:arg' \
+ '(- *)-version[display Kakoune version and quit]' \
+ '-ro[readonly mode]' \
+ '(- *)-help[display a help message and quit]' \
+ '*::files:_files'
}
_kak "$@"
+
+# Local Variables:
+# mode: Shell-Script
+# sh-indentation: 2
+# indent-tabs-mode: nil
+# sh-basic-offset: 2
+# End:
+# vim: ft=zsh sw=2 ts=2 et