summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/window-copy.c
AgeCommit message (Collapse)Author
2024-11-26Add copy-mode-position-style and copy-mode-selection-style for copyNicholas Marriott
mode (they default to mode-style as before).
2024-11-20Fix word navigation on lines with tabs, from Alexander Arch.Nicholas Marriott
2024-11-12Tidy up loop, from Alexander Arch.Nicholas Marriott
2024-11-12Mouse support on the scrollbars, from Michael Grant.Nicholas Marriott
2024-11-08Some fixes for searching for tabs, from Alexander Arch.Nicholas Marriott
2024-11-05Add support for a scrollbar at the side of each pane. New optionsNicholas Marriott
pane-scrollbars turn them on or off, pane-scrollbars-position sets the position (left or right), and pane-scrollbars-style to set the colours. Mouse support will come later. From Michael Grant in GitHub issue 4221.
2024-10-28Match tab cells when searching, from Alexander Arch in GitHub issueNicholas Marriott
4201.
2024-10-25Do not attempt to search for zero length strings, from Alexander Arch inNicholas Marriott
GitHub issue 4209.
2024-10-25Do not stop stop at first padding in format_grid_line and handle tabs.Nicholas Marriott
2024-10-25Flag tabs if possible in the grid cell so they can be preserved onNicholas Marriott
copying and capture-pane. From Alexander Arch in GitHub issue 4201.
2024-10-21Add function to get current offset from copy mode, from Michael Grant.Nicholas Marriott
2024-10-05Remove some debugging left behind.Nicholas Marriott
2024-10-05Add copy-mode-position-format to configure the position indicator.Nicholas Marriott
2024-10-04Rework of copy mode commands ("send-keys -X") to parse the arguments soNicholas Marriott
that flags may be detected propertly rather than just looking for strings ("-O" and so on). Also add -C and -P flags to the copy commands: -C prevents the commands from sending the text to the clipboard and -P prevents them from adding the text as a paste buffer. Note some of the default key bindings change to add "--" and any similar custom key bindings using "send-keys -X" may need a similar change. GitHub issue 4153.
2024-10-01Use global cursor style and colour options for modes instead of default,Nicholas Marriott
GitHub issue 4117.
2024-08-27Display hyperlinks in copy mode and add copy_cursor_hyperlink format toNicholas Marriott
get the hyperlink under the cursor.
2024-08-27Add search_count and search_count_partial formats in copy mode, GitHubNicholas Marriott
issue 4091.
2024-08-26Add copy-mode -d flag to scroll a page down if in copy mode already,Nicholas Marriott
from Michael Grant.
2024-05-14Revert part of the change for GitHub issue 3675 because it does not workNicholas Marriott
correctly, it was intended to skip lines that are already being searched as part of a previous wrapped line but in fact is skipping all lines except the last in wrapped lines. Also revert the search-wrapped-lines option (I didn't realize it was intended to work around this).
2024-05-14Add an option to disable unwrapping lines for searching, fromNicholas Marriott
meanderingprogrammer at gmail dot com, GitHub issue 3975.
2024-04-23correct indentation; no functional changeJonathan Gray
ok tb@
2024-03-26Fix selection present check, reported by M Kelly.Nicholas Marriott
2024-03-21Do not consider a selection present if it is empty, from Michael GrantNicholas Marriott
(GitHub issue 3869). Also a typo fix from GitHub issue 3877.
2023-11-02next-prompt can have 1 argument.Nicholas Marriott
2023-09-04Skip wrapped lines in top level search loop because they will beNicholas Marriott
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 supportNicholas Marriott
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,Nicholas Marriott
from Magnus Gross.
2023-07-03Add support for marking lines with a shell prompt based on the OSC 133Nicholas Marriott
extension, from Munif Tanjim in GitHub issue 3596.
2022-09-28Add scroll-top and scroll-bottom commands to scroll so cursor is at topNicholas Marriott
or bottom. From Anindya Mukherjee, GitHub issue 3334.
2022-08-23Add scroll-middle copy mode command to make cursor line in the middle,Nicholas Marriott
from Varun Kumar E in GitHub issue 3307.
2022-08-03Do not crash when searching for .* with extremely long lines. ReportedNicholas Marriott
by Torbjorn Lonnemark, GitHub issue 3272.
2022-07-22Clear marks when the search string changes. From Anindya Mukherjee,Nicholas Marriott
GitHub issue 3255.
2022-06-21Store time lines are scrolled into history and display in copy mode.Nicholas Marriott
2022-06-09If an application gives the first parameter to OSC 52, validate and passNicholas Marriott
on to outside terminal. GitHub issue 3192.
2022-05-30Add a way for lines added to copy mode to be passed through the parserNicholas Marriott
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.Nicholas Marriott
2021-12-20Do not crash on a zero size character.Nicholas Marriott
2021-10-11Add -e flag to set environment for popup, from Alexis Hildebrandt inNicholas Marriott
GitHub issue 2924.
2021-08-20Spacing tweaks.Nicholas Marriott
2021-08-20Hide struct args behind a couple of accessor functions.Nicholas Marriott
2021-08-20Remove some unnecessary blank lines.Nicholas Marriott
2021-08-20Remove stray spaces after function names.Nicholas Marriott
2021-08-11Add pipe variants of the line copy commands. While here make the commandNicholas Marriott
list less unreadable. GitHub issue 2813.
2021-08-09Change copy-line and copy-end-of-line not to cancel and add -and-cancelNicholas Marriott
variants, like the other copy commands. GitHub issue 2799.
2021-06-10Fix rectangle selection, from Anindya Mukherjee, GitHub issue 2709.Nicholas Marriott
2021-06-10More accurate vi(1) word navigation in copy mode and on the status line.Nicholas Marriott
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 alsoNicholas Marriott
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 someNicholas Marriott
other fixes. From Aaron Jensen with help from Anindya Mukherjee.
2021-03-09Allow cursor to be just after match if copying, GitHub issue 2602.Nicholas Marriott
2021-03-09Copy mode improvements from Anindya Mukherjee:Nicholas Marriott
- 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.