mirror of
https://github.com/jaclu/tmux-power-zoom.git
synced 2026-09-10 07:06:18 -04:00
linting
This commit is contained in:
parent
30eb97c090
commit
f1879c4237
7
.markdownlint.yaml
Normal file
7
.markdownlint.yaml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
|
||||
MD013: false
|
||||
|
||||
MD033:
|
||||
# Allowed elements
|
||||
allowed_elements: [br]
|
||||
|
|
@ -12,7 +12,7 @@ pane.
|
|||
|
||||
- Had forgotten to abort if attempt to zoom only pane - fixed
|
||||
- Removed a previous config variable `power_zoom_mouse`
|
||||
- Recent changes resulted in compatiblity with tmux 2.0
|
||||
- Recent changes resulted in compatibility with tmux 2.0
|
||||
- Repeated zooms of the same pane now works as expected
|
||||
- Made to work when shell is fish, what an odd beast that is...
|
||||
- Fixed some issues that prevented this to run on older versions of tmux.
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ if [[ -n "$mouse_action" ]]; then
|
|||
|
||||
# shellcheck disable=SC2089
|
||||
mouse_cmd="select-pane -t= \; run-shell -t= \"$SCRIPTS_DIR/power_zoom.sh\""
|
||||
# shellcheck disable=SC2086,2090 #options & mouse_cmd cant be quoted
|
||||
# shellcheck disable=SC2086,2090 #options & mouse_cmd can't be quoted
|
||||
$TMUX_BIN bind $options -n "$mouse_action" $mouse_cmd
|
||||
log_it "Mouse action: $mouse_action"
|
||||
fi
|
||||
|
|
@ -68,5 +68,5 @@ fi
|
|||
#
|
||||
$TMUX_BIN set-option @power_zoom_state ""
|
||||
|
||||
# shellcheck disable=SC2086 #options cant be quoted
|
||||
# shellcheck disable=SC2086 #options can't be quoted
|
||||
$TMUX_BIN bind-key "$@" "$trigger_key" run-shell "$SCRIPTS_DIR"/power_zoom.sh
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ check_pz_status() {
|
|||
fi
|
||||
elif [[ $placeholder = "$this_id" ]] && [[ $1 = "$GET_ZOOMED" ]]; then
|
||||
result=$zoomed
|
||||
# wont be doing updates this run, this will just trigger recursion
|
||||
# won't be doing updates this run, this will just trigger recursion
|
||||
# by the caller, when unzooming and list update will happen,
|
||||
# so no need to complete the loop
|
||||
break
|
||||
|
|
|
|||
Loading…
Reference in a new issue