aboutsummaryrefslogtreecommitdiff
path: root/cmd-find-window.c
Commit message (Collapse)AuthorAge
* Sync OpenBSD patchset 1142:Tiago Cunha2012-07-04
| | | | | Clean up and simplify the choose mode code, from Thomas Adam.
* Sync OpenBSD patchset 1141:Tiago Cunha2012-07-04
| | | | | Trim a blank line.
* Sync OpenBSD patchset 1119:Tiago Cunha2012-05-22
| | | | | | Switch all of the various choose- and list- commands over to the format infrastructure, from Thomas Adam.
* Sync OpenBSD patchset 1087:Tiago Cunha2012-04-10
| | | | | Minor style nits - return ().
* Sync OpenBSD patchset 1081:Tiago Cunha2012-04-10
| | | | | | Only find each window once no matter how many panes, from Jonathan Daugherty.
* Sync OpenBSD patchset 1076:Tiago Cunha2012-03-29
| | | | | Remove a stale comment.
* Sync OpenBSD patchset 1075:Tiago Cunha2012-03-29
| | | | | | Add -C -N -T flags to find-window to find in content, name, title. From Jonathan Daugherty.
* Expand the Id keyword. Tiago Cunha2011-07-09
|
* Sync OpenBSD patchset 829:Tiago Cunha2011-01-07
| | | | | | | | | | | | | | | | | | | | | | Clean up and simplify tmux command argument parsing. Originally, tmux commands were parsed in the client process into a struct with the command data which was then serialised and sent to the server to be executed. The parsing was later moved into the server (an argv was sent from the client), but the parse step and intermediate struct was kept. This change removes that struct and the separate parse step. Argument parsing and printing is now common to all commands (in arguments.c) with each command left with just an optional check function (to validate the arguments at parse time), the exec function and a function to set up any key bindings (renamed from the old init function). This is overall more simple and consistent. There should be no changes to any commands behaviour or syntax although as this touches every command please watch for any unexpected changes.
* Sync OpenBSD patchset 801:Tiago Cunha2010-12-22
| | | | | | | Unify the way sessions are used by callbacks - store the address and use the reference count, then check it is still on the global sessions list in the callback.
* Sync OpenBSD patchset 539:Tiago Cunha2009-11-14
| | | | | | Get rid of the ugly CMD_CHFLAG macro and use a const string (eg "dDU") in the command entry structs and a couple of functions to check/set the flags.
* Sync OpenBSD patchset 181:Tiago Cunha2009-07-28
| | | | | | | | | | | | | | | | | Make all messages sent between the client and server fixed size. This is the first of two changes to make the protocol more resilient and less sensitive to other changes in the code, particularly with commands. The client now packs argv into a buffer and sends it to the server for parsing, rather than doing it itself and sending the parsed command data. As a side-effect this also removes a lot of now-unused command marshalling code. Mixing a server without this change and a client with or vice versa will cause tmux to hang or crash, please ensure that tmux is entirely killed before upgrading.
* A similar for fix for window_choose: don't rely on the callback always beingNicholas Marriott2009-07-17
| | | | | | called to free data, have a separate free callback and call it from the mode cleanup code.
* Having fixed flags for single-character getopt options is a bit hard toNicholas Marriott2009-07-14
| | | | | | | | | | maintain and is only going to get worse as more are used. So instead, add a new uint64_t member to cmd_entry which is a bitmask of upper and lowercase options accepted by the command. This means new single character options can be used without the need to add it explicitly to the list.
* Restore $Id$ and add script to do so.Nicholas Marriott2009-06-25
|
* Change find-window and monitor-content to use fnmatch(3). For convenience andNicholas Marriott2009-06-25
| | | | | compatibility, *s are implicitly added at the start and end of the pattern.
* - New window option monitor-content to search for a string in a window, andTiago Cunha2009-05-19
| | | | | | | | | highlight the status line if it matches. - To make this possible, the function cmd_find_window_search from cmd-find-window.c had to be moved to window.c and renamed window_pane_search. - While there use three new functions in server.c to check for bell, activity, and content, to avoid too much nesting.
* Space trimmage mega-diff.Nicholas Marriott2009-05-04
|
* 8 -> UTF8_SIZE.Nicholas Marriott2009-03-29
|
* Better UTF-8 support, including combined characters. Unicode data is now storedNicholas Marriott2009-03-28
| | | | | | | | | | | as UTF-8 in a separate array, the code does a lookup into this every time it gets to a UTF-8 cell. Zero width characters are just appended onto the UTF-8 data for the previous cell. This also means that almost no bytes extra are wasted non-Unicode data (yay). Still some oddities, such as copy mode skips over wide characters in a strange way, and the code could do with some tidying.
* Step 2 of the Grand Plan To Make UTF-8 Better.Nicholas Marriott2009-03-28
| | | | | | | | | | | | | | | | | | | Split grid into two arrays, one containing grid attributes/flags/colours (keeps the name grid_cell for now) and a separate with the character data (called text). The text is stored as a u_short but is treated as a uint64_t elsewhere; eventually the grid will have two arrays. I'm not happy with the naming so that might change. Still need to decide where to go from here. I'm not sure whether to combine the peek/set functions together, and also whether to continue to treat the text as a uint64_t (and convert to/from Unicode) or make it a char array (of size one when UTF-8 disabled, eight when enabled) and keep everything as UTF-8. Also since UTF-8 will eventually become an attribute of the grid itself it might be nice to move all the padding crap into grid.c.
* Pass return code from _exec; allow command sequences to work from the ↵Nicholas Marriott2009-01-19
| | | | command line.
* Don't die when run non-interactively. DOH.Nicholas Marriott2009-01-18
|
* find-window command.Nicholas Marriott2009-01-18