#
10e0aa77 |
| 15-Apr-2024 |
nicm <nicm@openbsd.org> |
Fixes for memory leaks reported by Lu Ming Yin, fixes from Howard Chu.
|
#
a01f743b |
| 15-Mar-2023 |
nicm <nicm@openbsd.org> |
Fix command prompt not to always append argument but only if there has actually been expansion. GitHub issue 3493.
|
#
3e8355bd |
| 30-May-2022 |
nicm <nicm@openbsd.org> |
Spacing/style nits.
|
#
d520327d |
| 22-Sep-2021 |
nicm <nicm@openbsd.org> |
Fix command prompt with multiple prompts (add the result onto the list again as we go along). ok deraadt
|
#
d8b32369 |
| 27-Aug-2021 |
nicm <nicm@openbsd.org> |
Replace %% in command lists (by copying them) for template arguments , this means they can be used with {} as well. Also make argument processing from an existing vector preserve commands. GitHub iss
Replace %% in command lists (by copying them) for template arguments , this means they can be used with {} as well. Also make argument processing from an existing vector preserve commands. GitHub issue 2858.
show more ...
|
#
e4c0b811 |
| 25-Aug-2021 |
nicm <nicm@openbsd.org> |
Validate command argument types (string or command list) and give more useful error messages.
|
#
04c8d165 |
| 25-Aug-2021 |
nicm <nicm@openbsd.org> |
Start inputs as NULL so not freeing random stack garbage, GitHub issue 2852.
|
#
2db6a388 |
| 23-Aug-2021 |
nicm <nicm@openbsd.org> |
Move command argument parsing common functions and don't bother to parse again if given a command rather than a string.
|
#
a51dead1 |
| 21-Aug-2021 |
nicm <nicm@openbsd.org> |
Add args parsing callback for some future work, currently unused.
|
#
1693b10b |
| 20-Aug-2021 |
nicm <nicm@openbsd.org> |
Hide struct args behind a couple of accessor functions.
|
#
3e68b6f4 |
| 17-Aug-2021 |
nicm <nicm@openbsd.org> |
Do not block with incremental command prompt.
|
#
d530b597 |
| 13-Aug-2021 |
nicm <nicm@openbsd.org> |
Set return code for confirm-before and make command-prompt also block, GitHub issue 2822.
|
#
f0257292 |
| 10-Jun-2021 |
nicm <nicm@openbsd.org> |
Add -F for command-prompt and use it to fix "Rename" on the window menu, GitHub issue 2699.
|
#
bc5a8fc2 |
| 10-Jun-2021 |
nicm <nicm@openbsd.org> |
Add different command historys for different types of prompts ("command", "search" etc). From Anindya Mukherjee.
|
#
94adf770 |
| 16-May-2020 |
nicm <nicm@openbsd.org> |
Expand target from client and use it to expand the prompt.
|
#
37a3aee2 |
| 16-May-2020 |
nicm <nicm@openbsd.org> |
Add -W and -T flags to command-prompt to only complete a window and a target, also complete aliases.
|
#
035dc73d |
| 13-Apr-2020 |
nicm <nicm@openbsd.org> |
Make client -c and -t handling common in cmd-queue.c and try to be clearer about whether the client is the target client (must have a session) or not.
|
#
1c43462c |
| 13-Apr-2020 |
nicm <nicm@openbsd.org> |
Add helpers for the simple case of parse string and add to command queue.
|
#
c1e0bdab |
| 13-Apr-2020 |
nicm <nicm@openbsd.org> |
When adding a list of commands to the queue, instead of automatically creating a new state for each group of commands, require the caller to create one and use it for all the commands in the list. Th
When adding a list of commands to the queue, instead of automatically creating a new state for each group of commands, require the caller to create one and use it for all the commands in the list. This means the current target works even with list with multiple groups (which can happen if they are defined with newlines).
show more ...
|
#
90d7ba38 |
| 13-Apr-2020 |
nicm <nicm@openbsd.org> |
Make struct cmd local to cmd.c and move it out of tmux.h.
|
#
c8877404 |
| 27-Jan-2020 |
nicm <nicm@openbsd.org> |
Add support for adding a note to a key binding (with bind-key -N) and use this to add descriptions to the default key bindings. A new -N flag to list-keys shows key bindings with notes rather than th
Add support for adding a note to a key binding (with bind-key -N) and use this to add descriptions to the default key bindings. A new -N flag to list-keys shows key bindings with notes rather than the default bind-key command used to create them. Change the default ? binding to use this to show a readable summary of keys.
Also extend command-prompt to return the name of the key pressed and add a default binding (/) to show the note for the next key pressed
Suggested by Alex Tremblay in GitHub issue 2000.
show more ...
|
#
df6ab229 |
| 23-May-2019 |
nicm <nicm@openbsd.org> |
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
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.
show more ...
|
#
0f3d1a91 |
| 20-May-2019 |
nicm <nicm@openbsd.org> |
Replace the various identical error callbacks with a single one in cmd-queue.c.
|
#
3bf5ffec |
| 17-May-2017 |
nicm <nicm@openbsd.org> |
Tidy command prompt callbacks and pass in the client.
|
#
bf0d297e |
| 22-Apr-2017 |
nicm <nicm@openbsd.org> |
Get rid of the extra layer of flags and cmd_prepare() and just store the CMD_FIND_* flags in the cmd_entry and call it for the command. Commands with special requirements call it themselves and updat
Get rid of the extra layer of flags and cmd_prepare() and just store the CMD_FIND_* flags in the cmd_entry and call it for the command. Commands with special requirements call it themselves and update the target for hooks to use.
show more ...
|