From: Frank Terbeck <ft@bewatermyfriend.org>
To: zsh-workers@zsh.org
Subject: [PATCH 11/18] _tmux: Remove old sub-commands and their aliases
Date: Mon, 10 Aug 2015 15:27:31 +0200 [thread overview]
Message-ID: <1439213258-14196-12-git-send-email-ft@bewatermyfriend.org> (raw)
In-Reply-To: <1439213258-14196-1-git-send-email-ft@bewatermyfriend.org>
---
Completion/Unix/Command/_tmux | 59 -------------------------------------------
1 file changed, 59 deletions(-)
diff --git a/Completion/Unix/Command/_tmux b/Completion/Unix/Command/_tmux
index 18cbe27..55f6144 100644
--- a/Completion/Unix/Command/_tmux
+++ b/Completion/Unix/Command/_tmux
@@ -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
--
2.1.4
next prev parent reply other threads:[~2015-08-10 13:34 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-10 13:27 [PATCH 00/18] Updates for _tmux Frank Terbeck
2015-08-10 13:27 ` [PATCH 01/18] _tmux: Update command line options Frank Terbeck
2015-08-10 13:27 ` [PATCH 02/18] _tmux: Update options for supported commands Frank Terbeck
2015-08-10 13:27 ` [PATCH 03/18] _tmux: Add support for new sub-commands Frank Terbeck
2015-08-10 13:27 ` [PATCH 04/18] _tmux: Remove dead code Frank Terbeck
2015-08-10 13:27 ` [PATCH 05/18] _tmux: Don't unset, set empty in local scope Frank Terbeck
2015-08-10 13:27 ` [PATCH 06/18] _tmux: No need to unset local variables Frank Terbeck
2015-08-10 13:27 ` [PATCH 07/18] _tmux: Replay all arguments when dispatching to new _tmux() Frank Terbeck
2015-08-10 13:27 ` [PATCH 08/18] _tmux: "local -x" serves no purpose Frank Terbeck
2015-08-10 13:27 ` [PATCH 09/18] _tmux: options => session_options Frank Terbeck
2015-08-10 13:27 ` [PATCH 10/18] Add helper script to check state of _tmux completion Frank Terbeck
2015-08-10 15:20 ` wrapping "local" (was: Re: [PATCH 10/18] Add helper script to check state of _tmux completion) Frank Terbeck
2015-08-10 15:32 ` Peter Stephenson
2015-08-10 15:50 ` [PATCH] Disable ‘local’ keyword in script to make data retrieval work Frank Terbeck
2015-08-10 13:27 ` Frank Terbeck [this message]
2015-08-10 13:27 ` [PATCH 12/18] _tmux: Add new command aliases Frank Terbeck
2015-08-10 13:27 ` [PATCH 13/18] _tmux: Fix options with changed scope Frank Terbeck
2015-08-10 13:27 ` [PATCH 14/18] _tmux: Remove support for old options Frank Terbeck
2015-08-10 13:27 ` [PATCH 15/18] _tmux: Add new session options Frank Terbeck
2015-08-10 13:27 ` [PATCH 16/18] _tmux: Add support for new server options Frank Terbeck
2015-08-10 13:27 ` [PATCH 17/18] _tmux: Add support for new window options Frank Terbeck
2015-08-10 13:27 ` [PATCH 18/18] _tmux: Update TODO Frank Terbeck
2015-08-10 13:52 ` [PATCH 00/18] Updates for _tmux Peter Stephenson
2015-08-10 14:46 ` [PATCH 19/18] _tmux: Update bell-action and prefix options Frank Terbeck
2015-08-10 14:46 ` [PATCH 20/18] _tmux: Fix \ooo display in completion list Frank Terbeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1439213258-14196-12-git-send-email-ft@bewatermyfriend.org \
--to=ft@bewatermyfriend.org \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).