mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-26 16:40:29 +01:00
36052: _tmux: Remove old sub-commands and their aliases
This commit is contained in:
parent
8208f5f8ed
commit
61ba1a92fd
2 changed files with 3 additions and 59 deletions
|
|
@ -29,6 +29,9 @@
|
|||
* 36056: Util/check-tmux-state: Add helper script to check state
|
||||
of _tmux completion
|
||||
|
||||
* 36052: Completion/Unix/Command/_tmux: _tmux: Remove old
|
||||
sub-commands and their aliases
|
||||
|
||||
2015-08-10 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 36045: Test/A05execution.ztst: make effect of failures
|
||||
|
|
|
|||
|
|
@ -74,7 +74,6 @@ _tmux_aliasmap=(
|
|||
breakp break-pane
|
||||
capturep capture-pane
|
||||
displayp display-panes
|
||||
downp down-pane
|
||||
findw find-window
|
||||
joinp join-pane
|
||||
killp kill-pane
|
||||
|
|
@ -103,7 +102,6 @@ _tmux_aliasmap=(
|
|||
swapp swap-pane
|
||||
swapw swap-window
|
||||
unlinkw unlink-window
|
||||
upp up-pane
|
||||
|
||||
# key bindings
|
||||
bind bind-key
|
||||
|
|
@ -127,7 +125,6 @@ _tmux_aliasmap=(
|
|||
|
||||
# buffers
|
||||
clearhist clear-history
|
||||
copyb copy-buffer
|
||||
deleteb delete-buffer
|
||||
lsb list-buffers
|
||||
loadb load-buffer
|
||||
|
|
@ -340,41 +337,6 @@ function _tmux-confirm-before() {
|
|||
__tmux-lastarg ${state} 'command_and_args' 1 "command string"
|
||||
}
|
||||
|
||||
function _tmux-copy-buffer() {
|
||||
[[ -n ${tmux_describe} ]] && print "Copy session paste buffers" && return
|
||||
local state session
|
||||
local -a args
|
||||
local -ax bopts
|
||||
|
||||
args=(
|
||||
'-a[choose a source buffer index]:buffer:->srcbuf'
|
||||
'-b[choose a destination buffer index]:buffer:->dstbuf'
|
||||
'-s[choose a source session]:session:->srcsession'
|
||||
'-t[choose a destination session]:session:->dstsession'
|
||||
)
|
||||
_arguments ${args}
|
||||
|
||||
case ${state} in
|
||||
((src|dst)session)
|
||||
__tmux-sessions
|
||||
return
|
||||
;;
|
||||
(srcbuf)
|
||||
session="$(__tmux-get-optarg -s "${words[@]}")"
|
||||
;;
|
||||
(srcbuf)
|
||||
session="$(__tmux-get-optarg -t "${words[@]}")"
|
||||
;;
|
||||
esac
|
||||
if [[ -n ${session} ]]; then
|
||||
bopts=( -t ${session} )
|
||||
__tmux-buffers
|
||||
return
|
||||
fi
|
||||
bopts=()
|
||||
__tmux-buffers
|
||||
}
|
||||
|
||||
function _tmux-copy-mode() {
|
||||
[[ -n ${tmux_describe} ]] && print "Enter copy mode" && return
|
||||
local -a args
|
||||
|
|
@ -424,13 +386,6 @@ function _tmux-display-panes() {
|
|||
_arguments ${args}
|
||||
}
|
||||
|
||||
function _tmux-down-pane() {
|
||||
[[ -n ${tmux_describe} ]] && print "Move down a pane" && return
|
||||
local -a args
|
||||
args=('-t[choose a target pane]:panes:__tmux-panes')
|
||||
_arguments ${args}
|
||||
}
|
||||
|
||||
function _tmux-find-window() {
|
||||
[[ -n ${tmux_describe} ]] && print "Search for a pattern in windows" && return
|
||||
local curcontext="${curcontext}" state
|
||||
|
|
@ -893,13 +848,6 @@ function _tmux-select-pane() {
|
|||
_arguments ${args} && return
|
||||
}
|
||||
|
||||
function _tmux-select-prompt() {
|
||||
[[ -n ${tmux_describe} ]] && print "Open a prompt to enter a window index" && return
|
||||
local -a args
|
||||
args=('-t[choose a target client]:clients:__tmux-clients')
|
||||
_arguments ${args} && return
|
||||
}
|
||||
|
||||
function _tmux-select-window() {
|
||||
[[ -n ${tmux_describe} ]] && print "Select a window" && return
|
||||
local -a args
|
||||
|
|
@ -1178,13 +1126,6 @@ function _tmux-unlink-window() {
|
|||
_arguments ${args}
|
||||
}
|
||||
|
||||
function _tmux-up-pane() {
|
||||
[[ -n ${tmux_describe} ]] && print "Move up a pane" && return
|
||||
local -a args
|
||||
args=('-t[choose a target pane]:panes:__tmux-panes')
|
||||
_arguments ${args}
|
||||
}
|
||||
|
||||
function _tmux-wait-for() {
|
||||
[[ -n ${tmux_describe} ]] && print "Wait for an event or trigger it" && return
|
||||
local state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue