Replace _values with compadd, and other cleanup recommended
Thanks @okapia!
This commit is contained in:
parent
c059bbdfe6
commit
9a215c194c
6
src/_kak
6
src/_kak
|
@ -42,8 +42,10 @@
|
|||
# ------------------------------------------------------------------------------
|
||||
|
||||
_kak_sessions() {
|
||||
session_ids=($(_call_program session_ids kak -l))
|
||||
_values 'kak sessions' "${session_ids[@]}"
|
||||
local -a session_ids expl
|
||||
session_ids=($(_call_program session_names kak -l))
|
||||
_description session-ids expl "session name"
|
||||
compadd "$expl[@]" -a session_ids
|
||||
}
|
||||
|
||||
_kak() {
|
||||
|
|
Loading…
Reference in New Issue