summaryrefslogtreecommitdiffstats
path: root/window-copy.c
AgeCommit message (Collapse)Author
2024-04-23correct indentation; no functional changejsg
ok tb@
2024-03-26Fix selection present check, reported by M Kelly.nicm
2024-03-21Do not consider a selection present if it is empty, from Michael Grantnicm
(GitHub issue 3869). Also a typo fix from GitHub issue 3877.
2023-11-02next-prompt can have 1 argument.nicm
2023-09-04Skip wrapped lines in top level search loop because they will benicm
combined in the inner loop (in window_copy_search_rl_regex and the others), avoids searching the same text multiple times. Also add a line length limit for regex searches. GitHub issue 3675.
2023-09-01Rewrite combined character handling to be more consistent and to supportnicm
newer Unicode combined characters (which we have to "know" are combined since they are not width zero). GitHub issue 3600.
2023-08-08Add flag to next-prompt/previous-prompt to go to command output instead,nicm
from Magnus Gross.
2023-07-03Add support for marking lines with a shell prompt based on the OSC 133nicm
extension, from Munif Tanjim in GitHub issue 3596.
2022-09-28Add scroll-top and scroll-bottom commands to scroll so cursor is at topnicm
or bottom. From Anindya Mukherjee, GitHub issue 3334.
2022-08-23Add scroll-middle copy mode command to make cursor line in the middle,nicm
from Varun Kumar E in GitHub issue 3307.
2022-08-03Do not crash when searching for .* with extremely long lines. Reportednicm
by Torbjorn Lonnemark, GitHub issue 3272.
2022-07-22Clear marks when the search string changes. From Anindya Mukherjee,nicm
GitHub issue 3255.
2022-06-21Store time lines are scrolled into history and display in copy mode.nicm
2022-06-09If an application gives the first parameter to OSC 52, validate and passnicm
on to outside terminal. GitHub issue 3192.
2022-05-30Add a way for lines added to copy mode to be passed through the parsernicm
to handle escape sequences and use it for run-shell, GitHub issue 3156.
2022-02-03Add a key in copy mode to toggle position indicator.nicm
2021-12-20Do not crash on a zero size character.nicm
2021-10-11Add -e flag to set environment for popup, from Alexis Hildebrandt innicm
GitHub issue 2924.
2021-08-20Spacing tweaks.nicm
2021-08-20Hide struct args behind a couple of accessor functions.nicm
2021-08-20Remove some unnecessary blank lines.nicm
2021-08-20Remove stray spaces after function names.nicm
2021-08-11Add pipe variants of the line copy commands. While here make the commandnicm
list less unreadable. GitHub issue 2813.
2021-08-09Change copy-line and copy-end-of-line not to cancel and add -and-cancelnicm
variants, like the other copy commands. GitHub issue 2799.
2021-06-10Fix rectangle selection, from Anindya Mukherjee, GitHub issue 2709.nicm
2021-06-10More accurate vi(1) word navigation in copy mode and on the status line.nicm
This changes the meaning of the word-separators option - setting it to the empty string is equivalent to the previous behavior. From Will Noble in GitHub issue 2693.
2021-04-05Fix a couple of edge cases with the jump-back-xxx commands, and alsonicm
update back-to-indentation to use grid_reader, thereby fixing line wrapping issues. From Anindya Mukherjee, GitHub issue 2633.
2021-04-01Change search-again with vi keys to work like actual vi(1), also somenicm
other fixes. From Aaron Jensen with help from Anindya Mukherjee.
2021-03-09Allow cursor to be just after match if copying, GitHub issue 2602.nicm
2021-03-09Copy mode improvements from Anindya Mukherjee:nicm
- Fix word and word-end for wrapped lines. - Fix copying of selection end on wrapped lines. - Fix wrapped word selection edge case. - Update select-line to respect wrapped lines. - Update window_copy_..._pos() functions to use grid_reader. GitHub issue 2605.
2021-03-02Drop support for popups where the content is provided directly to tmuxnicm
(which does not have many practical uses) and only support running a program in the popup. display-popup is now simpler and can accept multiple arguments to avoid escaping problems (like the other commands).
2021-02-22Fix regex searching with wrapped lines, from Anindya Mukherjee; GitHubnicm
issue 2570.
2021-02-22There are many format variables now so allocating all the default onesnicm
each time a tree is created is too expensive. Instead, convert them all into callbacks and put them in a static table so they only allocate on demand. The tree remains for the moment for extra (non-default) variables added by for example copy mode or popups. Also reduce expensive calls to localtime_r/strftime. GitHub issue 2253.
2021-02-22Move jump commands to grid reader, make them UTF-8 aware, and tidy up,nicm
from Anindya Mukherjee.
2021-02-08Add "pipe" variants of the "copy-pipe" commands which do not copy, fromnicm
Christian Zangl.
2021-01-22Add rectangle-on and rectangle-off copy mode commands, GitHub isse 2546nicm
from author at will dot party.
2021-01-22Fix some cursor movement commands, from Anindya Mukherjee.nicm
2021-01-18Hide some warnings on newer GCC versions, GitHUb issue 2525.nicm
2021-01-08With incremental search, start empty and only repeat the previous searchnicm
if the user tries to search again with an empty prompt. This matches emacs behaviour more closely.
2021-01-06Remove unused variable, from Ben Boeckel.nicm
2020-12-28Remove current match indicator which can't work anymore since we onlynicm
search the visible region. From Anindya Mukherjee, GitHub issue 2508.
2020-12-22Break cursor movement in grid into a common set of functions that cannicm
handle line wrapping and so on in one place and use them for the obvious copy mode commands. From Anindya Mukherjee.
2020-11-10Allow previous-word to scroll onto the first line, noticed by Anindyanicm
Mukherjee.
2020-09-22Do not wrap at end of text when positioning at end of match because thenicm
length may include trailing spaces.
2020-09-18Free buffer earlier to avoid confusing some compilers, GitHub issuenicm
2382.
2020-09-16Fix some warnings, GitHub issue 2382.nicm
2020-08-05Change searching to behave more like emacs and so that regex searchingnicm
doesn't overlap when searching forwards.
2020-07-15Handle padding cells correctly when searching, GitHub issue 2301.nicm
2020-06-16Correctly move to previous line when looking for previous word, fromnicm
Derry Jing.
2020-06-11Add some formats for search in copy mode (search_present, search_match).nicm
GitHub issue 2268.