aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
* meson/pkgbuild: update version to 1.4.41.4.4releases/1.4Daniel Eklöf2020-07-29-2/+2
|
* changelog: add extra newline between index and first releaseDaniel Eklöf2020-07-29-0/+1
|
* config: handle trailing comments and empty valuesDaniel Eklöf2020-07-29-16/+33
|
* changelog: improved font size consistency across monitors with different DPIDaniel Eklöf2020-07-29-0/+2
|
* term: use the monitors diagonal DPI value, instead of it's vertical PPI valueDaniel Eklöf2020-07-29-3/+3
|
* term: store current font DPI as a float instead of an integerDaniel Eklöf2020-07-29-12/+12
| | | | | FontConfig's DPI is a double, and using a float instead of an integer results in higher resolution.
* wayland: calculate a single, scaled DPI valueDaniel Eklöf2020-07-29-2/+13
| | | | | | | | | | | | Previously, we calculated the monitors horizontal and vertical PPI values. For font sizing, we used the vertical PPI value. It seems however, that using the diagonal PPI value, i.e. diagonal_px / diagonal_inch, gives more consistent results. This is still a PPI value, but since it is intended to be used as a FontConfig DPI value, name it 'dpi'.
* input: margins are not selectableDaniel Eklöf2020-07-29-17/+39
| | | | | | | | | | | | | * Fix col/row calculation in pointer-enter event; we did not take the margins into account. * seat->mouse.col,row are now set to -1 if the cursor is inside the margins. That is, col/row are only ever valid when the mouse is actually over the grid, and not in the margins. * Use regular 'left-ptr' mouse cursor when mouse is inside the margins, to not make the user think he/she can start a selection. Besides making things clearer, this also fixes a crash that occurred if you started a selection in e.g. the right margin.
* changelog: add 1.4.4 sectionDaniel Eklöf2020-07-29-0/+4
|
* meson/pkgbuild: bump version to 1.4.31.4.3Daniel Eklöf2020-07-27-2/+2
|
* changelog: prepare for 1.4.3Daniel Eklöf2020-07-27-6/+3
|
* Merge branch 'master' into releases/1.4Daniel Eklöf2020-07-27-84/+240
|\
| * doc: foot.5: modifiers+keys are pluralDaniel Eklöf2020-07-27-1/+1
| |
| * selection: extending a selection is now interactiveDaniel Eklöf2020-07-27-10/+12
| | | | | | | | | | That is, a selection extension can be resized just like an ordinary extension.
| * tokenize: handle escaped quotesDaniel Eklöf2020-07-27-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | We only support escaping quotes inside a quote, and only of the same type as the enclosing quote. I.e. "double quote \"escaped double quote\"" But not "double quote \'invalid escaped single quote\'"
| * Merge branch 'tokenizer-reset-argv-on-error'Daniel Eklöf2020-07-27-1/+5
| |\ | | | | | | | | | Closes #49.
| | * changelog: mention fix for crash on unclosed quote in tokenizerDaniel Eklöf2020-07-27-0/+3
| | |
| | * tokenize: remove newline from log message (LOG_ERR appends one for us)Daniel Eklöf2020-07-27-1/+1
| | |
| | * tokenize: reset *argv = NULL on errorDaniel Eklöf2020-07-27-0/+1
| |/ | | | | | | | | | | | | This allows the caller to call free() without having to worry about whether it has already been free:d or not. Closes #49.
| * doc: benchmark: update 'laptop' results after foot-1.4.0Daniel Eklöf2020-07-25-8/+8
| |
| * changelog: add 'contributors' sectionDaniel Eklöf2020-07-25-0/+4
| |
| * doc: benchmarks: update 'desktop' results after foot-1.4.0 releaseDaniel Eklöf2020-07-25-7/+7
| |
| * Merge branch 'manpage'Daniel Eklöf2020-07-25-1/+1
| |\
| | * Correct the location of footrc in manpageJonas 'cherti' Große Sundrup2020-07-25-1/+1
| | |
| * | Merge branch 'footrc'Daniel Eklöf2020-07-25-16/+16
| |\ \
| | * | Add inline color-number-mapping as commentJonas 'cherti' Große Sundrup2020-07-25-16/+16
| | |/
| * / Add configuration instructions to the READMEJonas 'cherti' Große Sundrup2020-07-25-1/+9
| |/
| * search: fix crash when searching the scrollback historyDaniel Eklöf2020-07-25-48/+56
| | | | | | | | | | | | | | | | | | | | | | | | search_update_selection() was changed in 1.4.x to *first* update the selection, *then* move the viewport. This leads to a crash if the new match (selection) is outside the current viewport; the selection code assumes the updated selection endpoint is in the visible viewport. Changing back to *first* move the viewport, *then* update the selection solves this.
| * readme: spelling fixesDaniel Eklöf2020-07-25-2/+2
| |
| * Merge branch 'birger-patch-1'Daniel Eklöf2020-07-25-3/+3
| |\
| | * Fix typobirger2020-07-25-1/+1
| | |
| | * Fix typosbirger2020-07-25-2/+2
| |/
| * pkgbuild: include changelogDaniel Eklöf2020-07-25-0/+1
| |
| * meson: install LICENSE, README.md and CHANGELOG.mdDaniel Eklöf2020-07-25-1/+9
| |
| * license: fix bad copy-paste: first commit was in 2019Daniel Eklöf2020-07-25-1/+1
| |
| * readme: add section describing how to identify footDaniel Eklöf2020-07-24-0/+39
| |
| * search: improve viewport movementsDaniel Eklöf2020-07-24-32/+52
| | | | | | | | | | | | * Don't move the viewport if the new match is already fully visible * When we do have to move the viewport, position it such that the new match ends up roughly in the middle.
| * csi: secondary DA: do not pretend we're xtermDaniel Eklöf2020-07-24-3/+31
| | | | | | | | | | | | | | | | | | | | | | Previously, our secondary DA response indicated a) VT420, b) an XTerm version number. Now, we indicate VT220 (which corresponds to the primary DA response), and we report foot's version number as MMmmpp. I.e major, minor and patch versions, using two digits. E.g. 1.4.2 is encoded as 010402
| * csi: primary DA: remove features we do not supportDaniel Eklöf2020-07-24-1/+13
| | | | | | | | | | | | | | | | We do not implement * Selective Erase * Technical Character Set * Terminal state interrogation
| * changelog: add new 'unreleased' sectionDaniel Eklöf2020-07-23-0/+9
| |
| * Merge branch 'releases/1.4'Daniel Eklöf2020-07-23-10/+5
| |\ | |/ |/|
* | meson/pkgbuild: bump to 1.4.21.4.2Daniel Eklöf2020-07-23-2/+2
| |
* | changelog: prepare for 1.4.2Daniel Eklöf2020-07-23-8/+3
| |
* | Merge branch 'master' into releases/1.4Daniel Eklöf2020-07-23-8/+31
|\|
| * sixel: remove sixel-to-be-splitted *before* splitting itDaniel Eklöf2020-07-23-4/+10
| | | | | | | | | | This fixes an assertion in debug builds, due to the pre-splitted and splitted sixels overlapping.
| * sixel: overwrite: use target sixel's height, not cell heightDaniel Eklöf2020-07-23-2/+6
| | | | | | | | | | | | | | When copying the image data for the left and right parts of the splitted images, use the sixel's height, not the cell height. This fixes a crash when the sixel didn't cover the entire cell height.
| * render: bump maximum window title length from 100 to 2048 (bytes)Daniel Eklöf2020-07-22-2/+6
| | | | | | | | Apparently, the max is ~8K, but lets stay on the safe side.
| * changelog: add new 'unreleased' sectionDaniel Eklöf2020-07-22-0/+9
| |
| * Merge branch 'releases/1.4'Daniel Eklöf2020-07-22-8/+8
| |\ | |/ |/|
* | meson/pkgbuild: bump version to 1.4.11.4.1Daniel Eklöf2020-07-22-2/+2
| |
* | changelog: prepare or 1.4.1Daniel Eklöf2020-07-22-6/+6
| |
* | Merge branch 'master' into releases/1.4Daniel Eklöf2020-07-22-6/+18
|\|
| * input: pipe: avoid goto's where variables may be uninitializedDaniel Eklöf2020-07-22-6/+9
| |
| * changelog: add a new 'unreleased' sectionDaniel Eklöf2020-07-22-0/+9
| |
| * Merge branch 'releases/1.4'Daniel Eklöf2020-07-22-11/+6
| |\ | |/ |/|
* | meson/pkgbuild: bump version to 1.4.0, require fcft 2.2.21.4.0Daniel Eklöf2020-07-22-4/+4
| |
* | changelog: prepare for 1.4.0Daniel Eklöf2020-07-22-7/+2
|/
* search: re-enable search-commit actionDaniel Eklöf2020-07-22-7/+5
| | | | | This was disabled while implementing multi-seat support, and I forgot to fix and re-enable before that feature was merged.
* readme: 'special thanks' -> 'credits'Daniel Eklöf2020-07-20-3/+3
|
* Merge branch 'pipe-grid-to-external-tool'Daniel Eklöf2020-07-17-302/+732
|\ | | | | | | Closes https://codeberg.org/dnkl/foot/issues/29
| * Merge branch 'master' into pipe-grid-to-external-toolDaniel Eklöf2020-07-16-20/+51
| |\ | |/ |/|
* | wayland: don't assume data-device globals are added before seatsDaniel Eklöf2020-07-16-18/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When we're handling the initial set of globals, the data-device and primary-selection-device objects may, or may not be registered before the seat(s). We need to handle both cases. When adding a seat, instantiate the data-device and primary-selection-device **if available**. When adding the device objects, instantiate them on **all** currently available seats.
* | term: remove unused struct definition 'rgb'Daniel Eklöf2020-07-16-2/+0
| |
| * extract: finish: allocate buffer before writing the terminatorDaniel Eklöf2020-07-16-18/+19
| | | | | | | | | | When all cells were empty, we'll have written 0 bytes to the buffer and hence it will still be un-allocated (i.e. NULL).
| * Merge branch 'master' into pipe-grid-to-external-toolDaniel Eklöf2020-07-16-19/+46
| |\ | |/ |/|
* | term: line-wrap: don't move cursor outside the gridDaniel Eklöf2020-07-16-4/+7
| | | | | | | | | | | | | | | | Remove assertion that row be less than the scrolling region end. The cursor may in fact be *inside* the margin. Inside the margin, content never scrolls, but we must make sure we don't move the cursor outside the grid.
* | sixel: verify list order: fix assertion when two sixels are on the same rowDaniel Eklöf2020-07-16-2/+22
| | | | | | | | | | Two sixel may in fact exist on the same row, assuming their columns don't overlap.
* | csi: never call term_print() with width <= 0Daniel Eklöf2020-07-16-2/+4
| |
* | vt: never call term_print() with a width <= 0Daniel Eklöf2020-07-16-3/+3
| |
* | vt: ignore 0x7f (DEL) in ground stateDaniel Eklöf2020-07-16-1/+4
| | | | | | | | | | | | | | This ensures *all* bytes mapped to action_print() have wcwidth == 1. DEL has wcwidth == -1, and would thus have been ignored by term_print() anwyway.
* | vt: utf8: handle multi-column spacer values correctly when combiningDaniel Eklöf2020-07-16-6/+3
| |
* | Merge pull request 'limit font size to non-negative values'Daniel Eklöf2020-07-15-1/+3
|\ \ | | | | | | | | | Closes https://codeberg.org/dnkl/foot/issues/38
| * | added font-size limitting to changelogMax Hollmann2020-07-15-0/+2
| | |
| * | limit font size to non-negative valuesMax Hollmann2020-07-15-1/+1
|/ /
| * changelog: use bemenu instead of fuzzel in pipe-visible exampleDaniel Eklöf2020-07-15-1/+1
| |
| * input: pipe-{visible,scrollback}: redirect stdout/stderr to /dev/nullDaniel Eklöf2020-07-15-1/+13
| |
| * footrc: add pipe-visible and pipe-scrollbackDaniel Eklöf2020-07-15-0/+2
| |
| * doc: foot.5: change pipe-visible example to use bemenu instead of fuzzelDaniel Eklöf2020-07-15-1/+1
| |
| * changelog: minorDaniel Eklöf2020-07-15-1/+1
| |
| * changelog: document pipe-visible and pipe-scrollback bindingsDaniel Eklöf2020-07-15-0/+4
| |
| * doc: foot.5: document pipe-visible and pipe-scrollbackDaniel Eklöf2020-07-15-0/+17
| |
| * config: oopsie, need to use strndup() on the pipe commandDaniel Eklöf2020-07-15-1/+1
| | | | | | | | Since it isn't NULL-terminated.
| * config: change syntax for pipe-command in key bindingDaniel Eklöf2020-07-15-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The pipe command can contain almost all printable characters. In particular, we can expect it to contain '='. Having the pipe command as part of the key breaks the key/value splitting. Change it so that it is instead an optional initial part of the value, enclosed in '[]'. I.e. instead of pipe-visible:cmd=binding we now need to write pipe-visible=[cmd] binding
| * input: commentsDaniel Eklöf2020-07-15-1/+3
| |
| * conf: bindings: allow several mappings for the same actionDaniel Eklöf2020-07-15-87/+166
| | | | | | | | | | If the bindings has different pipe command associated with them, treat them as different actions.
| * input: wip: initial support for piping scrollback/view to external toolsDaniel Eklöf2020-07-15-8/+133
| |
| * spawn: add optional stdin/stdout/stderr redirection FDsDaniel Eklöf2020-07-15-5/+11
| | | | | | | | | | If not -1, spawn() will redirect the child's stdin/stdout/stderr to these FDs.
| * config: add support for appending a 'spawn' argument to key bindingsDaniel Eklöf2020-07-15-3/+18
| | | | | | | | | | | | | | | | | | | | | | | | A key binding may now have an optional ':<cmd>' string appended to the key. This is intended to be used like so: pipe-scrollback:sh -c "cat > file"=Print TODO: we still only allow one *action*. Meaning you still cannot specify multiple pipe-scrollback bindings, for example.
| * input: parse_key_binding: free key-codes list if 'bindings' is NULLDaniel Eklöf2020-07-15-1/+3
| |
| * term: break out fork+exec functionality to a separate fileDaniel Eklöf2020-07-15-53/+82
| |
| * term: add term_scrollback_to_text() and term_view_to_text()Daniel Eklöf2020-07-15-2/+62
| | | | | | | | | | These functions extract the current view, or the entire scrollback as an UTF-8 encoded byte buffer.
| * extract: extract_one() sets a fail flag that extract_finish() readsDaniel Eklöf2020-07-15-7/+19
| | | | | | | | | | | | This allows us to safely call extract_finish() when extract_one() failed, and we'll get the expected result; false, indicating extract_finish() failed.
| * selection: provide a const-wrapper for extract_one()Daniel Eklöf2020-07-15-1/+9
| | | | | | | | | | extract_one() takes const pointers, while the callback argument to foreach() expects non-const.
| * extract: extract_one: make arguments constDaniel Eklöf2020-07-15-4/+7
| |
| * selection: refactor: break out text extraction to a separate fileDaniel Eklöf2020-07-15-170/+203
| |
| * conf: add definitions for pipe-{scrollback,view} bindingsDaniel Eklöf2020-07-15-0/+9
|/
* Revert "wiki: testing"Daniel Eklöf2020-07-15-1/+0
| | | | This reverts commit b2dec8db164645cebb82a114564ce231518e6494.
* wiki: testingDaniel Eklöf2020-07-15-0/+1
|
* selection: don't skip SPACER cells in the generic foreach()Daniel Eklöf2020-07-15-4/+3
| | | | | | | | As that breaks e.g. selection marking (SPACER cells didn't get inverted when rendered). Instead, skip them in extract_one() only. I.e. when copying text from the grid.
* selection: row->dirty is a booleanDaniel Eklöf2020-07-15-2/+3
|