Merge pull request #925 from zsh-users/update-kak
Update kak completion
This commit is contained in:
commit
710e0c19a6
49
src/_kak
49
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
|
||||
|
|
Loading…
Reference in New Issue