summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Altmanninger <aclopte@gmail.com>2022-07-19 15:56:05 +0200
committerJohannes Altmanninger <aclopte@gmail.com>2022-07-21 16:48:44 +0200
commit3e9ca0e5c38b111bf1a68b62f6f2e44a7d12f6e9 (patch)
tree9492651ac75437dec319a346550604a4e267d250
parent7f08ac3de281c6917966dad85731b4aceeecb32c (diff)
rc windowing: use menu behavior for focus
We can complete every possible client argument.
-rw-r--r--rc/windowing/iterm.kak2
-rw-r--r--rc/windowing/kitty.kak2
-rw-r--r--rc/windowing/new-client.kak2
-rw-r--r--rc/windowing/screen.kak2
-rw-r--r--rc/windowing/sway.kak2
-rw-r--r--rc/windowing/tmux.kak2
-rw-r--r--rc/windowing/wayland.kak2
-rw-r--r--rc/windowing/x11.kak2
8 files changed, 8 insertions, 8 deletions
diff --git a/rc/windowing/iterm.kak b/rc/windowing/iterm.kak
index d99a975c..02045f13 100644
--- a/rc/windowing/iterm.kak
+++ b/rc/windowing/iterm.kak
@@ -136,7 +136,7 @@ If no client is passed then the current one is used' \
fi
}
}
-complete-command iterm-focus client
+complete-command -menu iterm-focus client
alias global focus iterm-focus
alias global terminal iterm-terminal-vertical
diff --git a/rc/windowing/kitty.kak b/rc/windowing/kitty.kak
index 1e4880dc..64cc224e 100644
--- a/rc/windowing/kitty.kak
+++ b/rc/windowing/kitty.kak
@@ -72,7 +72,7 @@ If no client is passed then the current one is used' \
fi
}
}
-complete-command kitty-focus client
+complete-command -menu kitty-focus client
alias global terminal kitty-terminal
alias global terminal-tab kitty-terminal-tab
diff --git a/rc/windowing/new-client.kak b/rc/windowing/new-client.kak
index e017344e..214a18e3 100644
--- a/rc/windowing/new-client.kak
+++ b/rc/windowing/new-client.kak
@@ -6,4 +6,4 @@ The optional arguments are passed as commands to the new client' \
terminal kak -c %val{session} -e "%arg{@}"
}
-complete-command new command
+complete-command -menu new command
diff --git a/rc/windowing/screen.kak b/rc/windowing/screen.kak
index 8e4b6ee5..f9050886 100644
--- a/rc/windowing/screen.kak
+++ b/rc/windowing/screen.kak
@@ -72,7 +72,7 @@ If no client is passed then the current one is used' \
fi
}
}
-complete-command screen-focus client
+complete-command -menu screen-focus client
alias global focus screen-focus
alias global terminal screen-terminal-vertical
diff --git a/rc/windowing/sway.kak b/rc/windowing/sway.kak
index dc0c5830..4df12240 100644
--- a/rc/windowing/sway.kak
+++ b/rc/windowing/sway.kak
@@ -43,7 +43,7 @@ If no client is passed, then the current client is used' \
fi
}
}
-complete-command sway-focus client
+complete-command -menu sway-focus client
unalias global focus
alias global focus sway-focus
diff --git a/rc/windowing/tmux.kak b/rc/windowing/tmux.kak
index fe656cc2..f5a8fda3 100644
--- a/rc/windowing/tmux.kak
+++ b/rc/windowing/tmux.kak
@@ -71,7 +71,7 @@ If no client is passed then the current one is used' \
fi
}
}
-complete-command tmux-focus client
+complete-command -menu tmux-focus client
## The default behaviour for the `new` command is to open an horizontal pane in a tmux session
alias global focus tmux-focus
diff --git a/rc/windowing/wayland.kak b/rc/windowing/wayland.kak
index 1f595a33..ea8de71d 100644
--- a/rc/windowing/wayland.kak
+++ b/rc/windowing/wayland.kak
@@ -51,7 +51,7 @@ If no client is passed, then the current client is used' \
%{
fail 'Focusing specific windows in most Wayland window managers is unsupported'
}
-complete-command wayland-focus client
+complete-command -menu wayland-focus client
alias global focus wayland-focus
alias global terminal wayland-terminal
diff --git a/rc/windowing/x11.kak b/rc/windowing/x11.kak
index 4c39f7ba..a6f7da87 100644
--- a/rc/windowing/x11.kak
+++ b/rc/windowing/x11.kak
@@ -63,7 +63,7 @@ If no client is passed, then the current client is used' \
fi
}
}
-complete-command x11-focus client
+complete-command -menu x11-focus client
alias global focus x11-focus
alias global terminal x11-terminal