866117636e
Add different command historys for different types of prompts
...
("command", "search" etc). From Anindya Mukherjee.
2021-06-10 07:50:03 +00:00
cd208c9d72
Permit shortcut keys in buffer, client, tree modes to be configured with
...
a format; the default remains the line number. GitHub issue 2636.
2021-04-12 06:50:25 +00:00
fd451aa796
Redraw any visible modes when status line changes so that formats like
...
the pane title are updated. GitHub issue 2487. Also a man page fix from
jmc.
2020-12-03 07:12:11 +00:00
5e008eefaa
Renumber after killing windows for choose-tree.
2020-07-15 11:03:17 +00:00
1e42689661
kill-window -a cannot just walk the list of windows because if
...
renumber-windows is on, the window it wants to keep could be moved.
Change to renumber afterwards and also behave better if the window is
linked into the session twice. GitHub issue 2287.
2020-07-04 14:24:02 +00:00
c914abfa19
Expand target from client and use it to expand the prompt.
2020-05-16 16:16:07 +00:00
d67245c734
Add a customize mode where keys and options may be browsed and changed,
...
includes adding a brief description of each option. Bound to "C" by
default.
2020-05-16 16:02:24 +00:00
0dd1944206
Tweak the default choose modes formats:
...
- Only show pane title if it is not default and not empty.
- Add a prettier time format and use that instead of long ctime().
- Remove clutter and change the order.
2020-05-16 14:10:29 +00:00
899b3d2436
Indicate the marked pane in choose mode in reverse and add key to set
...
and clear it (m and M) and a key to jump to the starting pane (H).
2020-04-22 21:01:28 +00:00
a1fc8f8b23
More style nits.
2020-04-09 15:35:27 +00:00
7bbca49395
Fix positioning of menu in choose modes and a couple of keys in tree mode.
2020-03-20 17:26:14 +00:00
6628e542b5
Add -Z to default switch-client command in tree mode, matches previous
...
behaviour.
2020-01-08 06:38:55 +00:00
7826d40ff9
Style nits in function arguments.
2019-12-03 10:47:22 +00:00
9fd62efcf0
Rewrite options_array_set to be clearer and remove a spurious warning
...
with newer GCC. From Ben Boeckel.
2019-10-15 08:30:36 +00:00
bbd1032a2a
Style and line length nits.
2019-09-25 19:05:59 +00:00
37583f0a69
Add a flag to reverse sort in the various choose modes, from Benjamin
...
Poirier in GitHub issue 1875.
2019-08-16 11:49:12 +00:00
799a154b91
Change display-menu from taking a single string to a set of arguments,
...
which is much easier to work with. Based on a diff from Avi Halachmi.
2019-05-28 07:18:42 +00:00
a131655235
Add simple menus to tree, client, buffer modes.
2019-05-12 08:58:09 +00:00
82c789ee58
Fix memory leak in window tree search, from Amos Bird.
2019-04-30 06:19:51 +00:00
78287e27c8
Break new window and pane creation common code from various commands and
...
window.c into a separate file spawn.c.
2019-04-17 14:37:48 +00:00
2628af573d
Add format variables for the default formats for the various modes
...
(tree_mode_format and so on) and add a -a flag to display-message to
list variables with values.
2019-03-18 14:10:25 +00:00
938156d73b
DECRC and DECSC apparently need to preserve origin mode as well, based
...
on a fix from Marc Reisner.
2019-03-12 20:02:47 +00:00
f98c66ece8
Add a separate mode struct for the active window mode if any.
2019-03-07 20:24:21 +00:00
bde0224deb
Pass window into mode functions.
2018-12-18 13:20:44 +00:00
d95fad3d5f
Expand \u and \U escape sequences in command strings, from Christopher
...
Hunt in GitHub issue 1443.
2018-08-19 19:03:46 +00:00
c6975b3bb4
Add x and X to choose-tree (with a confirmation prompt) to kill an
...
item. Suggested by Matt Zagrabelny.
2018-04-10 10:48:44 +00:00
803b8815bd
Do not crash on empty window, reported by Jamie Macdonald in GitHub
...
issue 1299. Patch from Thomas Adam.
2018-03-29 08:03:51 +00:00
508e2f0b3a
Add -Z flag to choose-tree, choose-client, choose-buffer to
...
automatically zoom the pane when the mode is entered and unzoom when it
exits, assuming the pane is not already zoomed. Add -Z to the default
key bindings.
2018-02-28 08:55:44 +00:00
50a5f84cb4
Support mouse on preview in tree mode.
2017-11-03 17:02:33 +00:00
43264dfbf4
Make the mode draw function use the parent screen directly rather than
...
its own to avoid copying twice.
2017-11-02 22:00:42 +00:00
17655e5ba6
Format for group list of "other sessions" is a bit weird, just list all
...
the sessions in the group.
2017-11-02 18:52:05 +00:00
95850e1aca
Tweak previous slightly so that current session is chosen if it is in
...
the group rather than first.
2017-11-02 18:43:51 +00:00
c1f62f1fde
Only show the first member of session groups in tree mode (-G flag
...
disables).
2017-11-02 18:27:35 +00:00
e91e8a2a6c
Fix crash exiting command prompt (from Alex Maese in GitHub issue 1139)
...
and a man page tweak from jmc.
2017-10-26 08:17:12 +00:00
8dd776106d
Add P key to paste tagged in buffer mode, and trim some code that should
...
no longer be necessary.
2017-10-25 11:26:11 +00:00
26f1857154
Use window_pane_index() when drawing pane numbers (so pane-base-index is
...
applied), from Thomas Adam. GitHub issue 1125.
2017-10-22 13:16:54 +00:00
eb9839fd32
Box around label in preview.
2017-10-11 12:57:49 +00:00
99351c9cae
Add C-n and C-p keys for tree mode, and choose the right initial line
...
when no panes.
2017-10-11 08:08:16 +00:00
17cf1b21c6
Pass flags into cmd_find_from_* to fix prefer-unattached, reported by
...
Thomas Sattler.
2017-08-30 10:33:57 +00:00
ac2ba0961b
Fix filtering so it works after the change to only show windows if they
...
have multiple panes.
2017-08-09 13:44:36 +00:00
5dd5543fe4
Add -F to choose-tree, choose-client, choose-buffer to specify the
...
format of each line, as well as adding a couple of formats needed for
the default display.
2017-08-09 11:43:45 +00:00
b4c9f6edba
Show pane title in window list for windows with only one pane.
2017-07-28 10:59:58 +00:00
8b84fc177c
Line up keys in tree mode, and don't expand windows with one pane. From
...
Thomas Adam.
2017-07-12 14:31:06 +00:00
bfaa885f10
Fix size of rightmost preview section.
2017-07-07 16:27:26 +00:00
53d4ed22e8
< and > keys to scroll preview list left and right in tree mode.
2017-07-04 22:21:31 +00:00
bedf8bd437
Handle 0 size of preview box in caller.
2017-07-04 12:26:14 +00:00
4039802fce
Change session and window preview so that the current window or pane is
...
always shown.
2017-07-03 22:48:02 +00:00
fa677fc0e1
Don't write over right border.
2017-06-30 22:37:35 +00:00
b565644c81
Fix previous when we end up able to show no panes.
2017-06-30 22:36:11 +00:00
7247553c77
Try to show a better preview of sessions and windows in tree mode.
2017-06-30 22:24:08 +00:00