Skip to content

Commit de3f738

Browse files
committed
feat: allow an optional -l [target-pane] for refresh-client
1 parent 3188ba2 commit de3f738

4 files changed

Lines changed: 460878 additions & 444863 deletions

File tree

grammar.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ module.exports = grammar({
1313
conflicts: ($) => [
1414
[$.new_session_directive],
1515
[$.new_window_directive],
16+
[$.refresh_client_directive],
1617
[$.resize_pane_directive],
1718
[$.server_access_directive],
1819
[$.set_environment_directive],
@@ -575,7 +576,6 @@ module.exports = grammar({
575576
_pane_state: ($) => option($, "A", alias($._string, $.pane_state)),
576577
_name_what_format: ($) =>
577578
option($, "B", alias($._string, $.name_what_format)),
578-
// TODO: -l [target-pane]
579579
refresh_client_directive: ($) =>
580580
command(
581581
$,
@@ -589,7 +589,7 @@ module.exports = grammar({
589589
$._target_pane_l,
590590
$._target_client,
591591
),
592-
$.adjustment,
592+
optional($.adjustment),
593593
),
594594
rename_session_directive: ($) =>
595595
command(
@@ -651,7 +651,7 @@ module.exports = grammar({
651651
),
652652
pane: ($) => $._string,
653653
_target_pane: ($) => option($, "t", $.pane),
654-
_target_pane_l: ($) => option($, "l", $.pane),
654+
_target_pane_l: ($) => prec.right(option($, "l", optional($.pane))),
655655
_src_pane: ($) => option($, "s", $.pane),
656656
window: ($) => $._string,
657657
_target_window: ($) => option($, "t", $.window),

src/grammar.json

Lines changed: 40 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)