mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-12 08:00:08 +01:00
feat: allow matching command-line arguments
This commit is contained in:
parent
e691596af8
commit
b50672267e
3 changed files with 66 additions and 28 deletions
|
|
@ -90,6 +90,8 @@ setup_pattern_binding () {
|
|||
tmux bind-key -T ${keytable} ${key} new-window -d -n ${window_name} "${BINARY} run --window-name '"${window_name}"' --clipboard-exe ${clipboard_exe} --reverse --unique-hint ${pattern_arg}"
|
||||
}
|
||||
|
||||
# prefix + t + a searches for command-line arguments
|
||||
setup_pattern_binding "a" "--pattern-name command-line-args"
|
||||
# prefix + t + c searches for hex colors #aa00f5
|
||||
setup_pattern_binding "c" "--pattern-name hexcolor"
|
||||
# prefix + t + d searches for dates or datetimes
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue