summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/popup.c
AgeCommit message (Collapse)Author
2024-09-30Only use default-shell for popups, return to /bin/sh for run-shell,Nicholas Marriott
if-shell and #() - these have been documented as using /bin/sh for a long time and scripts rely on it. Pointed out by Gregory Pakosz.
2024-08-21Revamp extended keys support to more closely match xterm and supportNicholas Marriott
mode 2 as well as mode 1. From Stanislav Kljuhhin (GitHub issue 4038). This changes tmux to always request mode 2 from parent terminal, change to an unambiguous internal representation of keys, and adds an option (extended-keys-format) to control the format similar to the xterm(1) formatOtherKeys resource.
2024-03-21Do not notify window-layout-changed if the window is about to beNicholas Marriott
destroyed (since it may have been freed by the time the notify happens), from Romain Francoise in GitHub issue 3860.
2023-08-15Add an option menu-selected-style to configure the currently selectedNicholas Marriott
menu item, from Alexis Hildebrandt.
2023-08-08Add options and flags for menu styles similar to those existing forNicholas Marriott
popups, from Alexis Hildebrandt. GitHub issue 3650.
2023-06-21Check fdopen return value, from Christian Menges.Nicholas Marriott
2023-06-08Fix mismatch between function prototype and definition, from AnindyaNicholas Marriott
Mukherjee.
2023-03-15Do not leak screen in popups, GitHub issue 3492.Nicholas Marriott
2023-01-20Add a flag to display-menu to select the manu item chosen first, GitHubNicholas Marriott
issue 3442.
2022-02-22Use correct size for screen when popup is created without borders.Nicholas Marriott
2022-02-16Support more mouse buttons when the terminal sends them, GitHub issueNicholas Marriott
3055.
2022-02-01A menu must be shown on a client, so always give the client when addingNicholas Marriott
the items. Also fix mode menus.
2022-01-17Do not try to strdup NULL, from seL4 at disroot dot org in GitHub issueNicholas Marriott
3038.
2021-10-25Add -s and -S to display-popup to set popup and border style, fromNicholas Marriott
Alexis Hildebrandt in GitHub issue 2931.
2021-10-25Instead of setting the popup default colours in the draw callback, setNicholas Marriott
it up in popup_display and follow the same routine as panes in the draw and init_ctx callbacks - use the palette if the option value is default. Allows application-set fg and bg to work in panes again.
2021-10-20Remove a TODO comment.Nicholas Marriott
2021-10-20Add -T to set a popup title, from Alexis Hildebrandt in GitHub issue 2941.Nicholas Marriott
2021-10-14Add popup-border-lines option to set popup line style, from AlexisNicholas Marriott
Hildebrandt, GitHub issue 2930.
2021-10-13Add popup-style and popup-border-style options, from Alexis HildebrandtNicholas Marriott
in GitHub issue 2927.
2021-10-11Make positions hidden by overlays range-based rather than character-based,Nicholas Marriott
from Anindya Mukherjee.
2021-10-11Add -e flag to set environment for popup, from Alexis Hildebrandt inNicholas Marriott
GitHub issue 2924.
2021-08-17Revert previous; this is not how it should work.Nicholas Marriott
2021-08-17Start sync before drawing popup.Nicholas Marriott
2021-08-13Tweak how mouse works on popup: only Meta alone resizes or moves, notNicholas Marriott
Meta with other modifiers; button 2 on the left or top border opens menu, right or bottom resizes; button 1 on any border moves.
2021-08-13Check callback needs to only return 0 (text should be suppressed) ifNicholas Marriott
menu returns 0, otherwise it should check the popup also.
2021-08-13Fill in some other bits on new panes.Nicholas Marriott
2021-08-13Add menu options to convert a popup into a pane.Nicholas Marriott
2021-08-13Adjust overlay check callback before drawing data from pty.Nicholas Marriott
2021-08-13Add a menu when a popup is present (mouse only for now).Nicholas Marriott
2021-08-13Add -B flag to remove border from popup.Nicholas Marriott
2021-08-11Break the colour palette into a struct rather than just a single arrayNicholas Marriott
and use that to support the OSC palette-setting sequences in popups. Also add a pane-colours array option to specify the defaults. GitHub issue 2815.
2021-08-05Do not freeze output in panes when a popup is open, let them continue toNicholas Marriott
redraw. From Anindya Mukherjee .
2021-07-21Do not close popups on resize, instead adjust them to fit, from AnindyaNicholas Marriott
Mukherjee.
2021-03-02Drop support for popups where the content is provided directly to tmuxNicholas Marriott
(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-02Fix popup mouse position.Nicholas Marriott
2020-09-22Resize screen to the correct size (borders need to be taken off).Nicholas Marriott
2020-05-16Separate key flags and modifiers, log key flags, make the "xterm" flagNicholas Marriott
more explicit and fix M- keys with a leading escape.
2020-05-16xterm-keys has been on by default for five years and all other modernNicholas Marriott
terminals use these key sequences by default. Merge the code into the main tty and input tree processing (converting the latter to use a tree rather than a table at the same time) and make the option a no-op.
2020-05-16Move editor stuff to common code in popup.c.Nicholas Marriott
2020-05-16Only redraw popup on the client it belongs to.Nicholas Marriott
2020-05-16Do not hoke into struct window_pane from the tty code and instead setNicholas Marriott
everything up in tty_ctx. Provide a way to initialize the tty_ctx from a callback and use it to let popups draw directly through input_parse in the same way as panes do, rather than forcing a full redraw on every change.
2020-05-16Add 'e' key in buffer mode to open the buffer in an editor.Nicholas Marriott
2020-04-13Add helpers for the simple case of parse string and add to command queue.Nicholas Marriott
2020-04-13When adding a list of commands to the queue, instead of automaticallyNicholas Marriott
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).
2020-04-13Move cmdq_state into cmd-queue.c.Nicholas Marriott
2020-04-13Rename cmdq_shared to cmdq_state which will better reflect what it isNicholas Marriott
(going to be) used for.
2020-04-13Store a key event not a mouse event in the shared data.Nicholas Marriott
2020-04-13Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make itsNicholas Marriott
use more clearly defined and preparation for some future work).
2020-04-07Limit size to 1x1 (total size 3x3).Nicholas Marriott
2020-04-01Support mouse in popups.Nicholas Marriott