Skip to content

Commit e812206

Browse files
relastleHiroki-Konishi
authored andcommitted
Add: tmux-related rules and snippets
1 parent 89942e7 commit e812206

File tree

2 files changed

+100
-0
lines changed

2 files changed

+100
-0
lines changed

rules/tmux_pmy_rules.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[
2+
{
3+
"regexpLeft": "^tmux ",
4+
"cmdGroups": [
5+
{
6+
"tag": "",
7+
"stmt": "%tmux_sub",
8+
"after": "awk '{print $1}'"
9+
}
10+
],
11+
"bufferLeft": "[]",
12+
"bufferRight": "[]"
13+
}
14+
]

snippets/tmux_sub.txt

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
attach-session attach -- attach or switch to a session
2+
bind-key bind -- bind a key to a command
3+
break-pane breakp -- break a pane from an existing into a new window
4+
capture-pane capturep -- capture the contents of a pane to a buffer
5+
choose-buffer -- put a window into buffer choice mode
6+
choose-client -- put a window into client choice mode
7+
choose-session -- put a window into session choice mode
8+
choose-tree -- put a window into tree choice mode
9+
choose-window -- put a window into window choice mode
10+
clear-history clearhist -- remove and clear history for a pane
11+
clock-mode -- enter clock mode
12+
command-prompt -- open the tmux command prompt in a client
13+
confirm-before confirm -- run a command but ask for confirmation before
14+
copy-mode -- enter copy mode
15+
delete-buffer deleteb -- delete a paste buffer
16+
detach-client detach -- detach a client from the server
17+
display-message display -- display a message in the status line
18+
display-panes displayp -- display an indicator for each visible pane
19+
find-window findw -- search for a pattern in windows
20+
has-session has -- check and report if a session exists on the server
21+
if-shell if -- execute a tmux command if a shell-command succeeded
22+
join-pane joinp -- split a pane and move an existing one into the new space
23+
kill-pane killp -- destroy a given pane
24+
kill-server -- kill clients, sessions and server
25+
kill-session -- destroy a given session
26+
kill-window killw -- destroy a given window
27+
last-pane lastp -- select the previously selected pane
28+
last-window last -- select the previously selected window
29+
link-window linkw -- link a window to another
30+
list-buffers lsb -- list paste buffers of a session
31+
list-clients lsc -- list clients attached to server
32+
list-commands lscm -- list supported sub-commands
33+
list-keys lsk -- list all key-bindings
34+
list-panes lsp -- list panes of a window
35+
list-sessions ls -- list sessions managed by server
36+
list-windows lsw -- list windows of a session
37+
load-buffer loadb -- load a file into a paste buffer
38+
lock-client lockc -- lock a client
39+
lock-server lock -- lock all clients attached to the server
40+
lock-session locks -- lock all clients attached to a session
41+
move-pane movep -- move a pane into a new space
42+
move-window movew -- move a window to another
43+
new-session new -- create a new session
44+
new-window neww -- create a new window
45+
next-layout nextl -- move a window to the next layout
46+
next-window next -- move to the next window in a session
47+
paste-buffer pasteb -- insert a paste buffer into the window
48+
pipe-pane pipep -- pipe output from a pane to a shell command
49+
previous-layout prevl -- move a window to the previous layout
50+
previous-window prev -- move to the previous window in a session
51+
refresh-client refresh -- refresh a client
52+
rename-session rename -- rename a session
53+
rename-window renamew -- rename a window
54+
resize-pane resizep -- resize a pane
55+
respawn-pane respawnp -- reuse a pane in which a command has exited
56+
respawn-window respawnw -- reuse a window in which a command has exited
57+
rotate-window rotatew -- rotate positions of panes in a window
58+
run-shell run -- execute a command without creating a new window
59+
save-buffer saveb -- save a paste buffer to a file
60+
select-layout selectl -- choose a layout for a window
61+
select-pane selectp -- make a pane the active one in the window
62+
select-window selectw -- select a window
63+
send-keys send -- send key(s) to a window
64+
send-prefix -- send the prefix key to a window
65+
server-info info -- show server information
66+
set-buffer setb -- set contents of a paster buffer
67+
set-environment setenv -- (un)set an environment variable
68+
set-hook -- set a hook to a command
69+
set-option set -- set a session option
70+
set-window-option setw -- set a window option
71+
show-buffer showb -- display the contents of a paste buffer
72+
show-environment showenv -- display the environment
73+
show-hooks -- show the global list of hooks
74+
show-messages showmsgs -- show client's message log
75+
show-options show -- show session options
76+
show-window-options showw -- show window options
77+
source-file source -- execute tmux commands from a file
78+
split-window splitw -- splits a pane into two
79+
start-server start -- start a tmux server
80+
suspend-client suspendc -- suspend a client
81+
swap-pane swapp -- swap two panes
82+
swap-window swapw -- swap two windows
83+
switch-client switchc -- switch the client to another session
84+
unbind-key unbind -- unbind a key
85+
unlink-window unlinkw -- unlink a window
86+
wait-for wait -- wait for an event or trigger it

0 commit comments

Comments
 (0)