Commit Graph

7669 Commits

Author SHA1 Message Date
9f0904ce6f Remove unused fparseln compat code. 2019-05-27 14:28:05 +01:00
bd40d704e2 Merge branch 'obsd-master' 2019-05-27 09:02:26 +01:00
65e5e14561 Fix the intended ordering of items in buffer mode - it should not always
be tag 0 when the tree is empty. GitHub issue 1759.
2019-05-27 06:50:04 +00:00
103e44d936 Merge branch 'obsd-master' 2019-05-26 21:02:26 +01:00
097973e3d5 Add keys for new menu items. 2019-05-26 18:43:43 +00:00
5fef946df4 Always redraw overlay if it is on (so status line doesn't redraw over it). 2019-05-26 18:27:52 +00:00
023c2c5392 Do not accept choice unless mouse has actually moved before. 2019-05-26 18:19:52 +00:00
e90d4a6021 Add formats for word and line under the mouse and use them to add some
items to the pane menu.
2019-05-26 17:34:45 +00:00
2e84d1cf03 Merge branch 'obsd-master' 2019-05-26 15:02:25 +01:00
6431005169 Add a way to append or prepend to a format if the length has been limited. 2019-05-26 12:02:42 +00:00
9beb3eb593 Merge branch 'obsd-master' 2019-05-26 13:02:26 +01:00
6dee409981 Some other platforms doesn't support fmemopen(3) (not unexpectedly), so
don't use it - since we only use getc/ungetc on the file anyway it is
easy not to.
2019-05-26 10:08:50 +00:00
f3fc81b178 Merge branch 'master' of github.com:ThomasAdam/tmux 2019-05-25 18:50:05 +01:00
463bd8abb9 Merge branch 'obsd-master' 2019-05-25 18:41:51 +01:00
a65a6d62d1 Add <, >, <=, >= for formats, GitHub issue 1747. 2019-05-25 16:51:10 +00:00
207789dc2d Client name can actually be NULL, so use address in that case. 2019-05-25 10:46:55 +00:00
d7586d3d65 Use client name when logging command queue. 2019-05-25 10:44:09 +00:00
f8d3d247d8 Merge cmd_list_parse into cmd-parse.y so it can use the new alias
processing code.
2019-05-25 07:18:20 +00:00
6b0fa14470 Fix error handling in if-shell. 2019-05-25 07:15:53 +00:00
a69211aff5 Fix up regress test. 2019-05-25 08:09:23 +01:00
930245d7ff Make cmd_log_argv take a printf-like format for the prefix. 2019-05-25 06:58:10 +00:00
0dc8b7d5d8 unbreak build, okay nicm@ 2019-05-23 21:36:42 +00:00
19a3a9ee20 Merge branch 'obsd-master' 2019-05-23 21:02:30 +01:00
f3e01ecc42 Fix line numbers - commands are added after the line ends so they need to
get line - 1.
2019-05-23 18:39:00 +00:00
6c260af56d Use the same argument escaping code for options as well. 2019-05-23 18:33:53 +00:00
e817821104 Mention \. 2019-05-23 19:27:41 +01:00
f006116bac Environment variables can start with { also. 2019-05-23 18:22:13 +00:00
43431e7e84 Merge branch 'obsd-master' 2019-05-23 17:02:25 +01:00
eb8b51effc Fix drawing of status-right when it is aligned to the centre, GitHub
issue 1754.
2019-05-23 14:44:33 +00:00
389cf63cbc Tweak text. 2019-05-23 15:18:20 +01:00
2148fe33cd CHANGES: remove note to packagers 2019-05-23 15:16:10 +01:00
1a6540fea0 CHANGES: remove note to packagers 2019-05-23 15:15:42 +01:00
7d702f3cef Don't remove group items for group 0 (no group). 2019-05-23 15:15:42 +01:00
d0c462f718 Fix length calculation for pasting UTF-8 characters in the status line,
GitHub issue 1753.
2019-05-23 15:15:42 +01:00
238d2aa870 CHANGES: mention yacc 2019-05-23 15:12:24 +01:00
6bb505eb73 CHANGES: mention yacc 2019-05-23 15:11:25 +01:00
83b9807370 Remove duplicate. 2019-05-23 15:11:25 +01:00
3e6e533779 Add yacc(1) bits. 2019-05-23 15:11:25 +01:00
27bfb56ad5 Break the argument escaping code into a separate function and use it to
escape key bindings in list-keys. Also escape ~ and ; and $ properly.
2019-05-23 14:03:44 +00:00
c49f2a0365 Merge branch 'obsd-master' 2019-05-23 15:02:28 +01:00
3e3eb1dd0f Don't remove group items for group 0 (no group). 2019-05-23 13:08:43 +00:00
a4fe7e81c8 Fix length calculation for pasting UTF-8 characters in the status line,
GitHub issue 1753.
2019-05-23 12:47:52 +00:00
4ce26b0393 Remove duplicate. 2019-05-23 13:32:18 +01:00
82bf0f4d48 configure.ac: add AC_PROC_YACC 2019-05-23 13:12:03 +01:00
8590ee65e6 TRAVIS: add bison to build deps 2019-05-23 13:12:03 +01:00
d67b99c7e4 configure.ac: add AC_PROC_YACC 2019-05-23 13:09:34 +01:00
092c7bfeb8 TRAVIS: add bison to build deps 2019-05-23 13:06:47 +01:00
bf2cf33fc6 Add yacc(1) bits. 2019-05-23 13:04:41 +01:00
75aeb733f2 Merge branch 'obsd-master' 2019-05-23 13:02:27 +01:00
723010ba72 Replace the split parser code (cfg.c and cmd-string.c) with a single
parser using yacc(1). This is a major change but is clearer and simpler
and allows some edge cases to be made more consistent, as well as
tidying up how aliases are handled. It will also allow some further
improvements later.

Entirely the same parser is now used for parsing the configuration file
and for string commands. This means that constructs previously only
available in .tmux.conf, such as %if, can now be used in string commands
(for example, those given to if-shell - not commands invoked from the
shell, they are still parsed by the shell itself).

The only syntax change I am aware of is that #{} outside quotes or a
comment is now considered a format and not a comment, so #{ is now a
syntax error (notably, if it is at the start of a line).

This also adds two new sections to the man page documenting the syntax
and outlining how parsing and command execution works.

Thanks to everyone who sent me test configs (they still all parse
without errors - but this doesn't mean they still work as intended!).

Thanks to Avi Halachmi for testing and man page improvements, also to
jmc@ for reviewing the man page changes.
2019-05-23 11:13:30 +00:00