aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md (follow)
Commit message (Collapse)AuthorAgeLines
* client: fix handling of "-m" command-line flagCraig Barnes2020-11-22-0/+1
|
* changelog: update contributorsDaniel Eklöf2020-11-21-0/+2
|
* config: add ‘dpi-aware’ option, defaulting to enabledDaniel Eklöf2020-11-19-0/+4
| | | | | | | | | | When disabled, foot no longers uses outputs’ DPI to scale the font. Instead, it uses the outputs’ scaling factor. That is, instead of appending “:dpi=123” to the fontconfig string, modify the “:pixelsize” or “:size” attribute. Closes #206
* keymap: fix alt+return combosDaniel Eklöf2020-11-19-0/+1
| | | | | | | | All alt+return combos mapped to the same escape sequence as alt+return itself. With this patch, alt+<mod(s)>+return map to a standard ‘CSI 27;x;13~’ sequence.
* keymap: use same lookup table for Tab and ISO_Left_TabDaniel Eklöf2020-11-19-0/+2
| | | | | | | | | | | | | | With XKB, Shift+Tab maps to XKB_KEY_ISO_Left_Tab, not XKB_Key_Tab. Previously, we had two different lookup tables for the two. The tab table was correctly populated, while the ISO-left tab wasn’t. As a result, all Shift+Tab combos (except Shift+Tab itself) was wrong, and resulted in the same escape sequence as Shift+Tab. Fix by using the same table for both tab and ISO-left tab. Closes #210
* changelog: bold-text-in-brightDaniel Eklöf2020-11-14-0/+3
|
* changelog: move pipe-* actions from ‘fixed’ to ‘added’Daniel Eklöf2020-11-13-4/+4
|
* config: enable allow-overflowing-double-width-glyphs by defaultDaniel Eklöf2020-11-13-0/+4
|
* changelog: fix link to readme#keypadDaniel Eklöf2020-11-12-2/+3
|
* Merge branch 'keypad-numlock-override'Daniel Eklöf2020-11-12-0/+3
|\ | | | | | | Closes #194
| * readme/doc:foot.1: document the (new) keypad behaviorDaniel Eklöf2020-11-11-0/+3
| |
* | wayland: preempt render scheduling in ‘configure’ eventsDaniel Eklöf2020-11-10-0/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | A configure event must be “committed”. In case of resizing, that means rendering a new frame and committing that surface. render_resize() will resize the grid and *schedule* a render refresh. However, if one is already pending, the refresh will take a very (relatively) long time - until the next frame callback is received. This poses a problem when the window is hidden, since in this case, the frame callback *never* comes. This in turn means we fail to commit a new surface in response to the ‘configure’ event. And that means the compositor needs to wait for a transaction timeout before continuing. The end effect is very slow and jerky window resizing when a hidden foot window is being resized. This can happen in tiled compositors, like Sway, where a window can be tabbed (and thus invisible), but still resized when its container is resized. Closes #190
* Merge branch 'releases/1.5'Daniel Eklöf2020-11-06-9/+16
|\
| * selection: explicitly set direction when right-click extendingDaniel Eklöf2020-11-06-0/+2
| | | | | | | | | | | | | | Fixes an issue where right-click-and-dragging to extend a selection caused one cell being removed from the selection. Closes #180
| * input: don’t use seat->kbd_focus as terminal when processing a key pressDaniel Eklöf2020-11-06-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | When converting mouse scroll events to keyboard input (in alternate scroll mode), we need to use seat->mouse_focus, not seat->kbd_focus. To enable this, break out key press/release handling code to a separate function that takes an explicit term argument. Call this function from keyboard_key(), input_repeat() and in alternate scroll mode. Closes #179
| * tiocswinsz: fix compilation error on e.g. ppc64Daniel Eklöf2020-11-06-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On some platforms, TIOCSWINSZ has a very large value, > 0x80000000. On some platforms, the `request` argument to `ioctl(3)` is an `int`. For platforms where both of the above is true, gcc will warn (and error out if compiled with `-Werror`) on: ioctl(fd, TIOCSWINSZ, ...) To silence this warning, we need to cast `TIOCSWINSZ` to an integer. However, doing this on platforms where `request` is an `unsigned long` will result in `TIOCSWINSZ` being sign-extended (and thus we end up with an invalid value). It seems that casting to `unsigned int` works in both cases; it silences the long -> int conversion warning, while also preserving the correct value in all cases.
| * input: handle XKB errorsDaniel Eklöf2020-11-06-0/+2
| | | | | | | | | | | | | | | | | | | | | | * Don’t de-reference the xkb context/keymap/state if we failed to instantiate them. * Don’t try to send a translated utf8 key sequence if the translation failed. * Handle xkb_compose_state_get_utf8() and xkb_state_key_get_utf8() returning more than 64 bytes. This _may_ fix #171.
| * input: don’t allow diagonal resize when tiledDaniel Eklöf2020-11-06-0/+1
| |
| * wayland: properly restore window size when being un-tiledDaniel Eklöf2020-11-06-0/+1
| | | | | | | | | | | | | | | | Bind to xdg-shell version 2 if available, as this enables us to track our window’s ‘tiled’ state in the ‘configure’ events. This in turn allows us to stash the ‘old’ window size when being tiled, to be used again when restoring the window size when un-tiled.
| * input: don’t crash if xkbcommon cannot find a compose fileDaniel Eklöf2020-11-06-0/+4
| | | | | | | | | | | | | | | | Handle xkb_compose_table_new_from_locale() returning NULL. When this happens, log a warning that “dead keys” will be disabled, and make sure to never de-reference the compose table pointer. Closes #170
| * changelog: prepare for 1.5.3Daniel Eklöf2020-11-06-0/+5
| |
* | config: add support for pipe-* actions in mouse bindingsDaniel Eklöf2020-11-06-0/+4
| | | | | | | | Closes #183
* | selection: explicitly set direction when right-click extendingDaniel Eklöf2020-11-04-0/+2
| | | | | | | | | | | | | | Fixes an issue where right-click-and-dragging to extend a selection caused one cell being removed from the selection. Closes #180
* | input: don’t use seat->kbd_focus as terminal when processing a key pressDaniel Eklöf2020-11-03-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | When converting mouse scroll events to keyboard input (in alternate scroll mode), we need to use seat->mouse_focus, not seat->kbd_focus. To enable this, break out key press/release handling code to a separate function that takes an explicit term argument. Call this function from keyboard_key(), input_repeat() and in alternate scroll mode. Closes #179
* | search: add {clipboard,primary}-paste key bindingsDaniel Eklöf2020-11-01-0/+4
| | | | | | | | | | | | | | | | | | | | These bindings copy from the clipboard or primary selection into the search buffer. Default bindings: * clipboard-paste: ctrl+v, ctrl+y * primary-paste: shift+insert
* | tiocswinsz: fix compilation error on e.g. ppc64Daniel Eklöf2020-10-29-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On some platforms, TIOCSWINSZ has a very large value, > 0x80000000. On some platforms, the `request` argument to `ioctl(3)` is an `int`. For platforms where both of the above is true, gcc will warn (and error out if compiled with `-Werror`) on: ioctl(fd, TIOCSWINSZ, ...) To silence this warning, we need to cast `TIOCSWINSZ` to an integer. However, doing this on platforms where `request` is an `unsigned long` will result in `TIOCSWINSZ` being sign-extended (and thus we end up with an invalid value). It seems that casting to `unsigned int` works in both cases; it silences the long -> int conversion warning, while also preserving the correct value in all cases.
* | selection: implement support for drag-and-dropDaniel Eklöf2020-10-26-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We accept COPY and MOVE actions, for text/plain;charset=utf-8 mime-types. To implement DnD, we need to track the current DnD data offer *and* the terminal instance it is (currently) targeting. To do this, a seat has a new member, ‘dnd_term’. On a DnD enter event, we lookup the corresponding terminal instance and point ‘dnd_term’ to it. On a DnD leave event, ‘dnd_term’ is reset. The DnD data offer is tracked in the terminal’s wayland window instance. It is reset, along with the seat’s ‘dnd_term’ on a DnD leave event. On a drop event, we immediately clear the seat’s ‘dnd_term’, to ensure we don’t reset it, or destroy the offer before the drop has been completed. The drop’s ‘done()’ callback takes care of destroying and resetting the DnD offer in the terminal’s wayland window instance. Closes #175
* | render: blink switches between foreground and dimmed foregroundDaniel Eklöf2020-10-22-0/+5
| |
* | Merge branch 'custom-bold-italic-fonts'Daniel Eklöf2020-10-21-0/+4
|\ \ | | | | | | | | | Closes #169
| * | config: add font-bold, font-italic and font-bold-italic optionsDaniel Eklöf2020-10-20-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These options lets the user configure custom fonts and styles, to use with the bold and italic cell attributes. By default, they are unset, meaning we use the bold/italic variants of the regular font. Closes #169.
* | | changelog: restored -> restoreDaniel Eklöf2020-10-20-1/+1
|/ /
* | input: handle XKB errorsDaniel Eklöf2020-10-20-0/+2
| | | | | | | | | | | | | | | | | | | | | | * Don’t de-reference the xkb context/keymap/state if we failed to instantiate them. * Don’t try to send a translated utf8 key sequence if the translation failed. * Handle xkb_compose_state_get_utf8() and xkb_state_key_get_utf8() returning more than 64 bytes. This _may_ fix #171.
* | input: don’t allow diagonal resize when tiledDaniel Eklöf2020-10-20-0/+1
| |
* | wayland: properly restore window size when being un-tiledDaniel Eklöf2020-10-20-0/+1
| | | | | | | | | | | | | | | | Bind to xdg-shell version 2 if available, as this enables us to track our window’s ‘tiled’ state in the ‘configure’ events. This in turn allows us to stash the ‘old’ window size when being tiled, to be used again when restoring the window size when un-tiled.
* | input: don’t crash if xkbcommon cannot find a compose fileDaniel Eklöf2020-10-19-0/+6
| | | | | | | | | | | | | | | | Handle xkb_compose_table_new_from_locale() returning NULL. When this happens, log a warning that “dead keys” will be disabled, and make sure to never de-reference the compose table pointer. Closes #170
* | Merge branch 'releases/1.5' into masterDaniel Eklöf2020-10-13-0/+9
|\|
| * input: regression: don’t pass on mouse click to application if we consumed itDaniel Eklöf2020-10-13-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | When we ‘consume’ a mouse button event (i.e. when we have a shortcut mapped to it), the event should *not* be passed on to the client application. In 5f64c5c33590a41afd3f621870c6abd89b859073, button handling was refactored and unfortunately introduced a regression where we once again started passing consumed button presses to the client application. Fixes #168
* | Merge branch 'scroll-up-down-while-selecting' into masterDaniel Eklöf2020-10-12-0/+4
|\ \ | | | | | | | | | Closes #149
| * | changelog: auto-scroll while selectingDaniel Eklöf2020-10-11-0/+3
| | |
* | | Merge branch 'releases/1.5' into masterDaniel Eklöf2020-10-11-3/+10
|\ \ \ | | |/ | |/|
| * | changelog: prepare for 1.5.1Daniel Eklöf2020-10-11-6/+3
| | |
| * | changelog: remove duplicate entryDaniel Eklöf2020-10-11-4/+0
| | |
| * | changelog: update ‘contributors’ listDaniel Eklöf2020-10-11-0/+1
| | |
| * | selection: use appropriate check for PRIMARY pasteSergey Nazaryev2020-10-11-0/+1
| | | | | | | | | | | | | | | | | | Assume it could be a copy-paste typo. We should check PRIMARY, not CLIPBOARD. Without this fix, we can't use PRIMARY until we copy anything to CLIPBOARD.
| * | config: bind shift+insert to primary-paste by defaultDaniel Eklöf2020-10-11-0/+2
| | |
| * | changelog: add contributorDaniel Eklöf2020-10-11-0/+2
| | |
| * | csi: only respond to Primary DA when Ps == 0Daniel Eklöf2020-10-11-0/+1
| | |
| * | changelog: we’ve fixed several sixel+reflow related bugsDaniel Eklöf2020-10-11-0/+2
| | |
| * | sixel: fix sheared image when image crosses scrollback wrap-aroundDaniel Eklöf2020-10-11-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a sixel image crosses the scrollback wrap-around, it is split up into (at least) two pieces. We use cursor->point.col for all pieces’ x-coordinate. This caused the final image to appear sheared, since we do a carriage-return (after a number of linefeeds) after each piece - this causes the cursor’s position to be reset to the left margin. The solution is simple; remember the cursor’s initial x-coordinate, and use that to position all image pieces. Closes #151.
| * | sixel: overwrite-by-rectangle expects ‘width’ to not exceed screenDaniel Eklöf2020-10-11-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | This fixes a crash when the emitted sixel extends beyond the right margin. The crash only happens when there are other sixel images already emitted. Fixes part of #151
| * | render: apply opacity correctly when in reverse video modeDaniel Eklöf2020-10-11-0/+1
| | |
| * | config: ignore key/value pairs following an invalid section nameDaniel Eklöf2020-10-11-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we detected an invalid section name, we correctly logged this and warned the user. However, the internal state machine now had an invalid section enum value. This caused a crash when the next key/value pair was to be parsed and we tried to lookup which parser function to call. Closes #159.
| * | changelog: trackpad scrolling: ‘multiplier’ is in the ‘scrollback’ sectionDaniel Eklöf2020-10-11-2/+2
| | |
| * | changelog: multiplier: the option belongs to the ‘scrollback’ sectionDaniel Eklöf2020-10-11-2/+2
| | |
| * | changelog: multiplier default value changed from 1.0 -> 3.0Daniel Eklöf2020-10-11-0/+5
| | |
| * | changelog: reword trackpad scrolling speed entryDaniel Eklöf2020-10-11-0/+5
| | |
| * | input: trackpad scroll: correctly convert pixel movements to line movementsDaniel Eklöf2020-10-11-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Trackpad scroll movements are in pixels. Foot previously “translated” these directly to line movements (i.e. a one pixel scroll event was translated into a one line scroll). Now we use the line height of the terminal and correctly convert pixels to lines. This makes the trackpad scroll speed in foot consistent with the scroll speed in e.g. Alacritty and Kitty.
| * | grid: reflow: retain scrollback positionDaniel Eklöf2020-10-11-0/+2
| | | | | | | | | | | | Closes #142
| * | changelog: fixed color flashes with OSC 4,10,11Daniel Eklöf2020-10-11-0/+2
| | |
| * | input: mouse: match binding if binding’s click count is *less*Daniel Eklöf2020-10-11-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow a mouse binding to match even if its click count is less than the actual click count. If there are multiple bindings that match, use the one with the highest click count (that less than, or equal to the actual click count). Closes #146
| * | changelog: add new ‘unreleased’ sectionDaniel Eklöf2020-10-11-0/+12
| | |
* | | changelog: remove duplicate entryDaniel Eklöf2020-10-11-4/+0
| | |
* | | changelog: move ‘csd.preferred=none’ from ‘changed’ to ‘added’Daniel Eklöf2020-10-11-3/+3
| | |
* | | csi: implement ‘CSI ? 1042 h/l’ - enable/disable bell-is-urgentDaniel Eklöf2020-10-11-2/+4
| |/ |/|
* | changelog: update ‘contributors’ listDaniel Eklöf2020-10-10-0/+1
| |
* | selection: use appropriate check for PRIMARY pasteSergey Nazaryev2020-10-10-0/+1
| | | | | | | | | | | | Assume it could be a copy-paste typo. We should check PRIMARY, not CLIPBOARD. Without this fix, we can't use PRIMARY until we copy anything to CLIPBOARD.
* | conf: csd.preferred can now be set to ‘none’Daniel Eklöf2020-10-10-0/+3
| | | | | | | | | | | | | | | | | | | | | | When csd.preferred == none, we will request CSDs from the compositor, but internally render as if we are using SSDs. That is, we don’t render any window decorations at all. Note that some compositors may ignore our request to use CSDs, and still render SSDs for us. Closes #163
* | Merge branch 'bind-shift+insert-to-primary-paste' into masterDaniel Eklöf2020-10-10-0/+2
|\ \
| * | config: bind shift+insert to primary-paste by defaultDaniel Eklöf2020-10-10-0/+2
| | |
* | | changelog: added: word-delimiters option to foot.iniDaniel Eklöf2020-10-09-0/+2
|/ /
* | changelog: add contributorDaniel Eklöf2020-10-09-0/+2
| |
* | csi: only respond to Primary DA when Ps == 0Daniel Eklöf2020-10-09-0/+1
| |
* | changelog: we’ve fixed several sixel+reflow related bugsDaniel Eklöf2020-10-09-0/+2
| |
* | sixel: fix sheared image when image crosses scrollback wrap-aroundDaniel Eklöf2020-10-09-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When a sixel image crosses the scrollback wrap-around, it is split up into (at least) two pieces. We use cursor->point.col for all pieces’ x-coordinate. This caused the final image to appear sheared, since we do a carriage-return (after a number of linefeeds) after each piece - this causes the cursor’s position to be reset to the left margin. The solution is simple; remember the cursor’s initial x-coordinate, and use that to position all image pieces. Closes #151.
* | sixel: overwrite-by-rectangle expects ‘width’ to not exceed screenDaniel Eklöf2020-10-09-0/+2
| | | | | | | | | | | | | | | | This fixes a crash when the emitted sixel extends beyond the right margin. The crash only happens when there are other sixel images already emitted. Fixes part of #151
* | bell: optionally render margins in red when receiving BELDaniel Eklöf2020-10-08-0/+8
| | | | | | | | | | | | | | | | | | | | | | Add anew config option, ‘bell=none|set-urgency’. When set to ‘set-urgency’, the margins will be painted in red (if the window did not have keyboard focus). This is intended as a cheap replacement for the ‘urgency’ hint, that doesn’t (yet) exist on Wayland. Closes #157
* | render: apply opacity correctly when in reverse video modeDaniel Eklöf2020-10-08-0/+1
| |
* | changelog: fix CSI escape sequenceDaniel Eklöf2020-10-08-1/+1
| |
* | config: ignore key/value pairs following an invalid section nameDaniel Eklöf2020-10-07-0/+2
| | | | | | | | | | | | | | | | | | | | | | When we detected an invalid section name, we correctly logged this and warned the user. However, the internal state machine now had an invalid section enum value. This caused a crash when the next key/value pair was to be parsed and we tried to lookup which parser function to call. Closes #159.
* | term: enable reverse wrap-around by defaultDaniel Eklöf2020-10-06-2/+3
| | | | | | | | | | Since we’re now doing reverse auto-wrapping by default, we add ‘bw’ (‘auto_left_margin’)to terminfo.
* | changelog: reverse auto-wrapDaniel Eklöf2020-10-02-0/+6
| |
* | Revert "term: cursor-left: reduce move count by one when lcf=true"Daniel Eklöf2020-10-02-2/+0
| | | | | | | | | | | | | | This reverts commit 02e3e4ac9b2703a0a867211c2482eab257cbc311. This broke at least Emacs. Cursor movement at the margins *is* undefined, and the behavior we’re now reverting to matches XTerm.
* | term: cursor-left: reduce move count by one when lcf=trueDaniel Eklöf2020-10-01-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | When lcf is true, cursor is actually beyond the right margin, but the stored coordinate is at the margin. This means we need to reduce the number of cells to move the cursor by one. This fixes an issue where e.g. backspacing when the cursor is at the right margin erased the next-to-last character instead of the last character.
* | changelog: trackpad scrolling: ‘multiplier’ is in the ‘scrollback’ sectionDaniel Eklöf2020-09-29-2/+2
| |
* | changelog: multiplier: the option belongs to the ‘scrollback’ sectionDaniel Eklöf2020-09-29-2/+2
| |
* | changelog: multiplier default value changed from 1.0 -> 3.0Daniel Eklöf2020-09-29-0/+5
| |
* | changelog: reword trackpad scrolling speed entryDaniel Eklöf2020-09-29-0/+5
| |
* | input: trackpad scroll: correctly convert pixel movements to line movementsDaniel Eklöf2020-09-29-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | Trackpad scroll movements are in pixels. Foot previously “translated” these directly to line movements (i.e. a one pixel scroll event was translated into a one line scroll). Now we use the line height of the terminal and correctly convert pixels to lines. This makes the trackpad scroll speed in foot consistent with the scroll speed in e.g. Alacritty and Kitty.
* | grid: reflow: retain scrollback positionDaniel Eklöf2020-09-29-0/+2
| | | | | | | | Closes #142
* | changelog: fixed color flashes with OSC 4,10,11Daniel Eklöf2020-09-29-0/+2
| |
* | input: mouse: match binding if binding’s click count is *less*Daniel Eklöf2020-09-27-0/+7
| | | | | | | | | | | | | | | | | | | | | | Allow a mouse binding to match even if its click count is less than the actual click count. If there are multiple bindings that match, use the one with the highest click count (that less than, or equal to the actual click count). Closes #146
* | Revert "meson: add -Dwith-docs=disabled|enabled|auto"Daniel Eklöf2020-09-24-7/+0
| | | | | | | | This reverts commit 9d6b2c934222f7e492fba06d02dd2d5991814d1b.
* | meson: add -Dwith-docs=disabled|enabled|autoDaniel Eklöf2020-09-24-0/+7
| | | | | | | | | | | | | | | | | | | | | | When enabled, man pages are generated and installed, along with README.md, CHANGELOG.md and LICENSE. This requires ‘scdoc’ as a make dependency. When disabled, ‘scdoc’ is no longer required, no man pages will be built, and no documentation at all is installed. Defaults to ‘enabled’.
* | changelog: add new ‘unreleased’ sectionDaniel Eklöf2020-09-18-0/+12
|/
* changelog: prepare for 1.5.0Daniel Eklöf2020-09-18-4/+2
|
* changelog: add cherti to contributorsDaniel Eklöf2020-09-18-0/+1
|
* Revert "changelog: add cherti to contributors"Daniel Eklöf2020-09-18-3/+4
| | | | This reverts commit 8f3692f9a662c69cadca1b840f22f4f222b550e9.
* changelog: add cherti to contributorsDaniel Eklöf2020-09-18-4/+3
|
* changelog: mouse events -> mouse scroll eventsDaniel Eklöf2020-09-15-2/+2
|
* config: add mouse.alternate-scroll-mode optionDaniel Eklöf2020-09-15-0/+6
| | | | | This option controls the initial state of the Alternate Scroll Mode, and defaults to ‘enabled’.