nicm
9ee1a8f701
Improve cursor positioning after reflow by storing the position as an
...
offset into the entire history before reflow and restoring it aftewards.
2019-03-20 19:19:11 +00:00
Nicholas Marriott
0e0f2f765b
Update CHANGES.
2019-03-20 14:01:46 +00:00
Thomas Adam
bff957a475
Merge branch 'obsd-master'
2019-03-20 08:02:38 +00:00
nicm
ed962e7612
Include function name in logging.
2019-03-20 07:30:05 +00:00
nicm
458b87150b
Do not leak ranges on error.
2019-03-20 07:28:31 +00:00
nicm
ae46a19b8e
Ignore invalid styles rather than throwing away the whole format, this
...
matches what we used to do.
2019-03-20 07:24:03 +00:00
nicm
3b959c05ff
Bit more logging to show drawing errors.
2019-03-20 07:13:02 +00:00
Thomas Adam
46f642b030
Merge branch 'obsd-master'
2019-03-19 22:02:36 +00:00
nicm
8b74e959ef
Include window-status-style and window-status-current style in the format.
2019-03-19 21:09:51 +00:00
Thomas Adam
320237fdb8
Merge branch 'obsd-master'
2019-03-19 20:02:37 +00:00
nicm
161b57869e
Add a cursor_character format.
2019-03-19 19:01:50 +00:00
Nicholas Marriott
92732a2540
Add to TODO.
2019-03-19 14:39:55 +00:00
Thomas Adam
b3eebdec48
Merge branch 'obsd-master'
2019-03-19 14:02:36 +00:00
nicm
b24c9e34a9
Rename the first KEY BINDINGS section to DEFAULT KEY BINDINGS.
2019-03-19 13:35:42 +00:00
Thomas Adam
073d439965
Merge branch 'obsd-master'
2019-03-19 00:02:39 +00:00
Thomas Adam
f956c17c09
Merge branch 'obsd-master'
2019-03-18 22:02:36 +00:00
nicm
0406ec0ec2
Free temporary screens when writing format.
2019-03-18 21:55:04 +00:00
nicm
f34ebfed76
The individual -fg, -bg and -attr options have been deprecated (in
...
favour of -style), undocumented and hidden from show-options since
2014. Remove them, except for status-fg and status-bg.
2019-03-18 21:46:01 +00:00
Thomas Adam
962f255ee8
Merge branch 'obsd-master'
2019-03-18 21:24:49 +00:00
nicm
c62404673e
Add some bits to the STATUS LINE section about the new option.
2019-03-18 21:01:04 +00:00
nicm
979313832c
Extend the #[] style syntax and use that together with previous format
...
changes to allow the status line to be entirely configured with a single
option.
Now that it is possible to configure their content, enable the existing
code that lets the status line be multiple lines in height. The status
option can now take a value of 2, 3, 4 or 5 (as well as the previous on
or off) to configure more than one line. The new status-format array
option configures the format of each line, the default just references
the existing status-* options, although some of the more obscure status
options may be eliminated in time.
Additions to the #[] syntax are: "align" to specify alignment (left,
centre, right), "list" for the window list and "range" to configure
ranges of text for the mouse bindings.
The "align" keyword can also be used to specify alignment of entries in
tree mode and the pane status lines.
2019-03-18 20:53:33 +00:00
Thomas Adam
1d6fe43c7b
Merge branch 'obsd-master'
2019-03-18 18:02:38 +00:00
Thomas Adam
4cbf596dc5
Merge branch 'obsd-master'
2019-03-18 15:30:55 +00:00
nicm
d738d51688
Mode init needs to be fired with the mode on the list or it will not be
...
resized correctly.
2019-03-18 15:25:36 +00:00
Thomas Adam
acb2413852
Merge branch 'obsd-master'
2019-03-18 15:07:51 +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
Nicholas Marriott
aa2b3472c5
Update TODO.
2019-03-18 12:00:10 +00:00
nicm
ce6be7afd4
Make array options a sparse tree instead of an array of char * and
...
remove the size limit.
2019-03-18 11:58:40 +00:00
nicm
d2d43987d0
With force, kill previous job before starting new. Fixes problem
...
reported by Scott Mcdermott in GitHub issue 1627.
2019-03-18 09:46:42 +00:00
nicm
bd3332b211
Break description of styles into its own section.
2019-03-17 19:33:12 +00:00
Nicholas Marriott
3a298454ce
Add to TODO.
2019-03-17 08:05:58 +00:00
nicm
b588b1729a
Use a pointer for the active screen in the status line instead of
...
copying them around all the time.
2019-03-16 19:12:13 +00:00
nicm
818fda0363
Give status_save_old the client so it can do the reinit too.
2019-03-16 17:53:55 +00:00
nicm
b4f5b99e4b
Tidy and rename some bits of status line code.
2019-03-16 17:14:07 +00:00
nicm
e8b33af780
Add a way to set individual defaults for an array option.
2019-03-15 21:54:47 +00:00
nicm
1d306e926a
Add a : to make error messages clearer.
2019-03-15 15:20:00 +00:00
nicm
33595a255f
Copy recursion counter into new formats when looping.
2019-03-15 15:02:25 +00:00
nicm
85044a634b
Move status line free into its own function.
2019-03-15 14:46:58 +00:00
nicm
2d71bef0ca
Remove unused member of struct client.
2019-03-15 10:48:05 +00:00
nicm
f6d34f066c
Only print format logging when the flag is set, even if also sending to log_debug.
2019-03-15 10:22:57 +00:00
nicm
672c49d512
The pane and window loops need to pass the window and pane tags when
...
they build their format.
2019-03-15 10:07:24 +00:00
nicm
27578815da
Add a -v flag to display-message to show verbose messages as the format
...
is parsed, this gives the user a way to debug problems with formats
rather than just being confronted with (for example) a blank status
line.
2019-03-15 10:04:13 +00:00
nicm
25e2e22791
Add a limit on how far format_expand can recurse.
2019-03-14 23:34:41 +00:00
nicm
10d60faba5
Store the time in the format tree rather than passing it around.
2019-03-14 23:14:27 +00:00
Thomas Adam
2c755e3c55
Merge branch 'obsd-master'
2019-03-14 22:02:39 +00:00
nicm
bace79a571
Remove some unnecessary temporary variables and be much less strict
...
about spacing in style_parse.
2019-03-14 21:46:08 +00:00
nicm
4206bcc10e
Add format flags for start and end window.
2019-03-14 21:41:30 +00:00
nicm
38064e7593
Add T format modifier like E but also do strftime(3).
2019-03-14 21:31:43 +00:00
nicm
1416ceb575
Accept 0 time as a shorthand for now to format_expand_time.
2019-03-14 21:27:26 +00:00
Thomas Adam
d58bccfc63
Merge branch 'obsd-master'
2019-03-14 20:02:38 +00:00