aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md (follow)
Commit message (Collapse)AuthorAgeLines
...
* | 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’.
* config: add tweak.scaling-filterDaniel Eklöf2020-09-13-0/+1
| | | | | | | | Use the new fcft_set_scaling_filter() API to use a non-default scaling filter. By default, we use lanczo3, the ‘best’ filter. This overrides the default in fcft, which is ‘cubic’ filtering.
* Merge branch 'scroll-half-page' into masterDaniel Eklöf2020-09-11-1/+11
|\ | | | | | | Closes #128
| * key-binding: deprecate scrollback-up/down, add scrollback-up/down-lineDaniel Eklöf2020-09-10-2/+9
| | | | | | | | | | | | | | | | This deprecates/renames scrollback-up/down to scrollback-up/down-page. It also renames scrollback-up/down-half to scrollback-up/down-half-page, and adds the new bindings scrollback-up/down-line.
| * config: add scrollback-{up,down}-half key bindingsDaniel Eklöf2020-09-09-0/+3
| | | | | | | | | | | | | | | | These new bindings scroll up/down half a page in the scrollback (instead of the full page scrolled by ‘scrollback-{up,down}’). Closes #128.
* | render: csd: hide buttons when title bar gets too small to fit themDaniel Eklöf2020-09-10-0/+2
| |
* | grid: reflow: make sure cursor is within the visible screen areaDaniel Eklöf2020-09-10-0/+1
| | | | | | | | | | | | | | | | Even though we translate the cursor position from the old grid coordinates to the new, the cursor may _still_ end up outside the visible area. Make sure it doesn’t.
* | osc52: unset (clear) selection when an invalid payload is receivedDaniel Eklöf2020-09-09-0/+2
|/
* Merge branch 'window-size-in-characters' into masterDaniel Eklöf2020-09-09-1/+8
|\
| * Add -W,--window-size-chars, and foot.ini:initial-window-size-charsDaniel Eklöf2020-09-08-1/+8
| | | | | | | | | | | | | | | | | | | | | | * Add -W,--window-size-chars command line option * Add initial-window-size-chars foot.ini option * Add -w,--window-size-pixels command line option * Add initial-window-size-pixels foot.ini option * Deprecate -g,--geometry command line option in favor of -w,--window-size-pixels * Deprecate geometry option in foot.ini in favor of initial-window-size-pixels
* | Merge branch 'keymap-shift-return' into masterDaniel Eklöf2020-09-09-0/+2
|\ \ | |/ |/|
| * keymap: emit \E[27;2;13~ for all key combinations involving Shift+ReturnDaniel Eklöf2020-09-07-0/+2
| | | | | | | | This is what XTerm emits with `modifyOtherKeys=1`, which is foot’s only mode.
* | changelog: move deprecation section up first, change most ‘footrc’ -> ‘foot.ini’Daniel Eklöf2020-09-08-17/+14
|/ | | | | | | | The deprecation sections mentions ‘footrc’ being deprecated, and replaced by ‘foot.ini’. Since a lot of the changelog entries refer to foot.ini, make sure the user sees this first. Also, use foot.ini (and not footrc) consistently in all changelog entries.
* Merge branch 'reflow-multi-column-composed-characters' into masterDaniel Eklöf2020-09-07-0/+1
|\
| * grid: reflow: calculate width of composed characters correctlyDaniel Eklöf2020-09-06-0/+1
| | | | | | | | | | Before this patch, reflow called `wcwidth()` on our magic values for composed characters.
* | render: change minimum window size from 4x20 -> 1x2 (rows/cols)Daniel Eklöf2020-09-07-0/+2
|/
* changelog: scrollback indicator did not exist in 1.4(.4)Daniel Eklöf2020-09-06-2/+0
| | | | Thus it’s wrong to say its behavior has changed.
* Merge branch 'improve-handling-of-private-usage-area-characters' into masterDaniel Eklöf2020-09-06-0/+4
|\ | | | | | | Closes #116
| * render: optionally enable heuristics that deal with private usage area charsDaniel Eklöf2020-09-03-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Try to detect double-width *glyphs* for single-width *characters*, and allow them to overflow into the next cell. This is only done for single-width chars with a glyph width that is at least 1.5 cells wide, but at most 3 cells. The feature is gated by the new ‘tweak.allow-overflowing-double-width-glyphs’, and is disabled by default. Closes #116
* | changelog: output objects received before XDG output managerDaniel Eklöf2020-09-04-0/+2
|/
* changelog: new configuration file locationDaniel Eklöf2020-08-27-0/+9
|
* Merge branch 'scrollback-indicator-positioning' into masterDaniel Eklöf2020-08-27-0/+2
|\ | | | | | | Closes #108
| * render: scrollback position: only count _used_ scrollback linesDaniel Eklöf2020-08-25-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When calculating where in the scrollback history we are, we previously did this against the total number of scrollback lines. I.e. the `scrollback.lines` setting in `footrc`. Now, we count only the used/allocated scrollback lines. Note that the initial indicator position might still seem to start a bit high up, if the number of used scrollback lines is low. This is because we use the *top* of the screen for the current position. Thus, we'll never be at the bottom (except for the special case when we're *really* at the bottom).
* | changelog: fixed input events from getting mixed with paste dataDaniel Eklöf2020-08-25-0/+2
|/