nicm
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
Nicholas Marriott
5ece386cdf
Break new window and pane creation common code from various commands and
...
window.c into a separate file spawn.c.
2019-04-07 13:01:03 +01:00
Thomas Adam
4cbf596dc5
Merge branch 'obsd-master'
2019-03-18 15:30:55 +00:00
nicm
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
Thomas Adam
400529eea0
Merge branch 'obsd-master'
2019-03-12 22:02:42 +00:00
nicm
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
Thomas Adam
349aeb806a
Merge branch 'obsd-master'
2019-03-07 22:02:42 +00:00
nicm
f98c66ece8
Add a separate mode struct for the active window mode if any.
2019-03-07 20:24:21 +00:00
Thomas Adam
c9d482ab48
Merge branch 'obsd-master'
2018-12-18 14:02:40 +00:00
nicm
bde0224deb
Pass window into mode functions.
2018-12-18 13:20:44 +00:00
Thomas Adam
3310972d75
Merge branch 'obsd-master'
2018-08-19 21:02:37 +01:00
nicm
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
Thomas Adam
1bd66b65a3
Merge branch 'obsd-master'
2018-04-10 13:02:28 +01:00
nicm
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
Thomas Adam
b5c0b2cae2
Merge branch 'obsd-master'
2018-03-29 10:28:18 +01:00
nicm
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
Thomas Adam
0ca9664ecf
Merge branch 'obsd-master'
2018-02-28 10:02:29 +00:00
nicm
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
Thomas Adam
6f3b6c8d92
Merge branch 'obsd-master'
2017-11-03 18:01:21 +00:00
nicm
50a5f84cb4
Support mouse on preview in tree mode.
2017-11-03 17:02:33 +00:00
Thomas Adam
e1606172dd
Merge branch 'obsd-master'
2017-11-03 00:01:20 +00:00
nicm
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
Thomas Adam
8c29f7413b
Merge branch 'obsd-master'
2017-11-02 20:01:26 +00:00
nicm
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
nicm
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
nicm
c1f62f1fde
Only show the first member of session groups in tree mode (-G flag
...
disables).
2017-11-02 18:27:35 +00:00
Thomas Adam
cf782c4f54
Merge branch 'obsd-master'
2017-10-26 10:01:18 +01:00
nicm
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
Thomas Adam
6b83ca0077
Merge branch 'obsd-master'
2017-10-25 14:01:26 +01:00
nicm
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
Thomas Adam
e85213a944
Merge branch 'obsd-master'
2017-10-22 15:47:07 +01:00
nicm
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
Thomas Adam
2357bfb254
Merge branch 'obsd-master'
2017-10-11 16:01:17 +01:00
nicm
eb9839fd32
Box around label in preview.
2017-10-11 12:57:49 +00:00
Thomas Adam
4efd41f3af
Merge branch 'obsd-master'
2017-10-11 10:01:19 +01:00
nicm
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
Thomas Adam
54c5070767
Merge branch 'obsd-master'
2017-08-30 12:01:10 +01:00
nicm
17cf1b21c6
Pass flags into cmd_find_from_* to fix prefer-unattached, reported by
...
Thomas Sattler.
2017-08-30 10:33:57 +00:00
Thomas Adam
0824850bbc
Merge branch 'obsd-master'
2017-08-09 16:01:10 +01:00
Thomas Adam
27c3852103
Merge branch 'obsd-master'
...
Conflicts:
tmux.1
2017-08-09 15:07:18 +01:00
nicm
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
nicm
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
Thomas Adam
ed8ddf2449
Merge branch 'obsd-master'
2017-07-28 14:01:13 +01:00
nicm
b4c9f6edba
Show pane title in window list for windows with only one pane.
2017-07-28 10:59:58 +00:00
Thomas Adam
e3698e6e1f
Merge branch 'obsd-master'
2017-07-12 16:01:11 +01:00
nicm
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
Thomas Adam
05062e7d2d
Merge branch 'obsd-master'
2017-07-07 18:01:15 +01:00
nicm
bfaa885f10
Fix size of rightmost preview section.
2017-07-07 16:27:26 +00:00
Thomas Adam
6b1ceca86a
Merge branch 'obsd-master'
2017-07-05 00:01:10 +01:00
nicm
53d4ed22e8
< and > keys to scroll preview list left and right in tree mode.
2017-07-04 22:21:31 +00:00
Thomas Adam
feb044bd2d
Merge branch 'obsd-master'
2017-07-04 14:01:15 +01:00
nicm
bedf8bd437
Handle 0 size of preview box in caller.
2017-07-04 12:26:14 +00:00
Thomas Adam
6cb4a3bb19
Merge branch 'obsd-master'
2017-07-04 02:01:13 +01:00
nicm
4039802fce
Change session and window preview so that the current window or pane is
...
always shown.
2017-07-03 22:48:02 +00:00
Thomas Adam
6fba9a39b7
Merge branch 'obsd-master'
2017-07-01 00:01:21 +01:00
nicm
fa677fc0e1
Don't write over right border.
2017-06-30 22:37:35 +00:00
nicm
b565644c81
Fix previous when we end up able to show no panes.
2017-06-30 22:36:11 +00:00
nicm
7247553c77
Try to show a better preview of sessions and windows in tree mode.
2017-06-30 22:24:08 +00:00
Thomas Adam
4dbab75855
Merge branch 'obsd-master'
2017-06-09 18:01:14 +01:00
nicm
adcd5aff6f
Extend filters (f key) to buffer and client mode and add -f flag to
...
specify to command.
2017-06-09 16:01:39 +00:00
nicm
bab4da5133
Add -O option to choose-* to set initial sort order.
2017-06-09 15:29:15 +00:00
Nicholas Marriott
9543f076fd
Use osdep_get_name.
2017-06-07 16:21:01 +01:00
nicm
405cc337f3
Add simple searching (C-s and n) to the various choose modes: by name
...
for client and tree, and by name and content for buffer.
2017-06-07 14:37:30 +00:00
nicm
bbc35b0b19
Do not pass a state into commands when fired on individual items in tree
...
mode, rely on the %% target substitution in the command for the chosen
pane and leave the default target as the current pane (where the mode
is). Otherwise, joinp and similar end up with -t and -s the
same. Reported by Jacob Niehus in GitHub issue 960.
2017-06-06 15:07:35 +00:00
nicm
aad4e4ddb1
Rewrite of choose mode, both to simplify and tidy the code and to add
...
some modern features.
Now the common code is in mode-tree.c, which provides an API used by the
three modes now separated into window-{buffer,client,tree}.c. Buffer
mode shows buffers, client mode clients and tree mode a tree of
sessions, windows and panes.
Each mode has a common set of key bindings plus a few that are specific
to the mode. Other changes are:
- each mode has a preview pane: for buffers this is the buffer content
(very useful), for others it is a preview of the pane;
- items may be sorted in different ways ('O' key);
- multiple items may be tagged and an operation applied to all of them
(for example, to delete multiple buffers at once);
- in tree mode a command may be run on the selected item (session,
window, pane) or on tagged items (key ':');
- displayed items may be filtered in tree mode by using a format (this
is used to implement find-window) (key 'f');
- the custom format (-F) for the display is no longer available;
- shortcut keys change from 0-9, a-z, A-Z which was always a bit weird
with keys used for other uses to 0-9, M-a to M-z.
Now that the code is simpler, other improvements will come later.
Primary key bindings for each mode are documented under the commands in
the man page (choose-buffer, choose-client, choose-tree).
Parts written by Thomas Adam.
2017-05-30 21:44:59 +00:00