aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeLines
...
| * | main: remove deprecated "--geometry" optionCraig Barnes2021-01-13-18/+8
|/ / | | | | | | Closes #287
* | Merge branch 'selection-handle-uri-list-wihtout-final-newline'Daniel Eklöf2021-01-12-27/+58
|\ \ | | | | | | | | | Closes #291
| * | selection: uri decode: move zero-length check into decode_one_uri()Daniel Eklöf2021-01-12-2/+4
| | |
| * | changelog: add hyphen between ‘newline’ and ‘terminated’Daniel Eklöf2021-01-12-2/+3
| | |
| * | changelog: pasting non-newline terminated text/uri-list offersDaniel Eklöf2021-01-12-0/+2
| | |
| * | selection: add a ‘finish’ function, called at the end of receiving clipboard dataDaniel Eklöf2021-01-12-0/+24
| | | | | | | | | | | | | | | This is necessary to decode the final URI in a text/uri-list offer if it hasn’t been newline terminated.
| * | selection: URI decoder: break out decoding of a single URIDaniel Eklöf2021-01-12-27/+29
|/ /
* | Merge branch 'fix-crash-when-closing-window'Daniel Eklöf2021-01-12-9/+27
|\ \ | | | | | | | | | Closes #289
| * | reaper: remove child from list *before* calling the user provided callbackDaniel Eklöf2021-01-12-9/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | The user provided callback may call reaper_del(), in which case we will crash when we also try to remove the child from the list. Remove it from the list before the callback means reaper_del() (if called by the callback) will just loop through the entire list without finding the pid and thus do nothing.
| * | term: remove client application’s pid from reaper when shutting downDaniel Eklöf2021-01-12-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we are shutting down the terminal, we explicitly wait for the child application to terminate (with a timeout, after which the child process is killed). I.e. there’s no need to let the reaper handle it. In fact, doing so leads to a crash since we will have destroyed (and thus free:d) the terminal instance when the reaper callback is called.
| * | pgo: stub implementation of reaper_del()Daniel Eklöf2021-01-12-0/+1
| | |
| * | reaper: add reaper_del() - pid is no longer watched/monitored after thisDaniel Eklöf2021-01-12-0/+12
|/ /
* | config: pt_or_px cannot be a unionDaniel Eklöf2021-01-11-7/+7
| |
* | wayland: take rotation into account when calculating the logical PPIDaniel Eklöf2021-01-11-0/+21
| |
* | doc: foot.ini: remove mention of geometry; this option has been removedDaniel Eklöf2021-01-11-3/+0
| |
* | doc: foot.ini: dpi-aware: shorten sentenceDaniel Eklöf2021-01-11-2/+2
| |
* | doc: foot.ini: line-height: “no set” -> “not set”Daniel Eklöf2021-01-11-1/+1
| |
* | doc: foot.ini: remove empty line after ‘font’ optionsDaniel Eklöf2021-01-11-1/+0
| |
* | changelog: glyhps -> glyphsDaniel Eklöf2021-01-11-1/+1
| |
* | Merge branch 'line-height-and-letter-spacing'Daniel Eklöf2021-01-11-41/+194
|\ \ | | | | | | | | | Closes #244
| * | changelog: move line-height entry from ‘changed’ to ‘added’Daniel Eklöf2021-01-11-4/+4
| | |
| * | config: fix comment: -1 is a valid ‘px’ valueDaniel Eklöf2021-01-11-1/+1
| | |
| * | box-drawing: x/y offsets: use pre-calculated offset values from term structDaniel Eklöf2021-01-11-12/+2
| | |
| * | term: use pt_or_px_as_pixels()Daniel Eklöf2021-01-11-12/+4
| | |
| * | term: add pt_or_px_as_pixels()Daniel Eklöf2021-01-11-0/+9
| | | | | | | | | | | | | | | This function takes a ‘union pt_or_px’ and converts its value to a pixel value.
| * | doc: foot.ini: line-height, letter-spacing and offsets are in points (by default)Daniel Eklöf2021-01-11-6/+16
| | |
| * | config: line-height, letter-spacing: values are in pt by default, but we allow pxDaniel Eklöf2021-01-11-61/+97
| | | | | | | | | | | | | | | | | | | | | | | | If the value is specified without a unit, then the value is assumed to be in points, subject to DPI scaling. The value can optionally have a ‘px’ suffix, in which case the value is treated as a raw pixel count.
| * | config: str_to_color(): use LOG_AND_NOTIFY(), not just LOG()Daniel Eklöf2021-01-11-11/+14
| | |
| * | changelog: line-height, letter-spacing and {horizontal,vertical}-letter-offsetDaniel Eklöf2021-01-11-0/+4
| | |
| * | doc: foot.ini: document line-height, letter-spacing and letter offsetsDaniel Eklöf2021-01-11-0/+22
| | |
| * | doc: foot.ini: put ‘shell’, ‘login-shell’ and ‘term’ firstDaniel Eklöf2021-01-11-13/+13
| | |
| * | config; {horizontal,vertical}-letter-offsets may be negativeDaniel Eklöf2021-01-11-4/+4
| | |
| * | config: letter-spacing: make this a relative valueDaniel Eklöf2021-01-11-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | 0, the default, means no additional spacing; the cell width is defined by the font metrics. A positive value *adds* to the width from the font metrics, while a negative value *subtracts*.
| * | box-drawing: compensate for non-zero {horizontal,vertical}-letter-offsetsDaniel Eklöf2021-01-11-2/+3
| | | | | | | | | | | | | | | Box drawing characters should always cover the entire cell. No more, no less.
| * | render: offset all glyphs with {horizontal,vertical}-letter-offsetDaniel Eklöf2021-01-11-7/+12
| | |
| * | term: set_fonts: use custom line-height+letter-spacing, if setDaniel Eklöf2021-01-11-4/+8
| | | | | | | | | | | | | | | If the user has configured a custom line-height and/or letter-spacing, use that instead of the font metrics.
| * | foot.ini: add new options: line-height, letter-spacing and *-letter-offsetDaniel Eklöf2021-01-11-4/+11
| | |
| * | config: add line-height, letter-spacing, {horizontal,vertical}-letter-offsetDaniel Eklöf2021-01-11-0/+56
|/ /
* | Merge branch 'fish-completions'Daniel Eklöf2021-01-08-0/+39
|\ \ | | | | | | | | | Closes #11
| * | Add fish completionFollieHiyuki2021-01-08-0/+39
|/ /
* | Merge branch 'center-grid-content'Daniel Eklöf2021-01-07-8/+44
|\ \ | | | | | | | | | Closes #273
| * | config: add optional ‘center’ argument to ‘pad’Daniel Eklöf2021-01-06-8/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When set, the grid contents is centered in the window. I.e. the left/right and top/bottom margins are equal (+- 1px). This causes the content to “jump” while doing an interactive resize, but may still be preferred in e.g. a tiling WM. Closes #273
* | | render: sixel: fix assertion: x/y coords may be outside visible areaDaniel Eklöf2021-01-06-2/+2
|/ / | | | | | | But when they are, width/height must be 0.
* | selection: extend-block: update pivot point and selection directionDaniel Eklöf2021-01-06-0/+6
| |
* | selection: extend: don’t copy to primary - it is done when RMB is releasedDaniel Eklöf2021-01-06-2/+0
| |
* | selection: extend: re-calculate pivot pointDaniel Eklöf2021-01-06-0/+30
| |
* | selection: break out pivot point adjustment for character-wise selectionsDaniel Eklöf2021-01-06-80/+111
| |
* | selection: combine enum selection_kind with selection_semanticDaniel Eklöf2021-01-06-38/+47
| |
* | Merge branch 'extend-selection-by-word'Daniel Eklöf2021-01-04-125/+338
|\ \ | | | | | | | | | Closes #267
| * | extract: finish: increase ‘idx’ when pushing new data, for consistencyDaniel Eklöf2021-01-04-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | We don’t write anything more to the buffer after this, but this makes this code consistent with all other code that pushes new data to the buffer. This makes it easier to search, and validate, the ensure_size()+push-data pattern.
| * | extract: finish: fix bad assertion - ‘idx’ may be equal to ‘size’Daniel Eklöf2021-01-04-2/+5
| | | | | | | | | | | | | | | | | | ‘idx’ is where _new_ data should be pushed into the buffer. Thus it is perfectly valid for it to be equal to ‘size’ - it just means we need to allocate more space before pushing data to it.
| * | selection: update: line-wraps are ok while moving pivot start/end pointDaniel Eklöf2021-01-04-8/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an assertion triggered when selecting the upper left cell and dragging down. We would end up trying to decrement the pivot end point, hitting an assertion that only is valid while skipping spacers. Remove the assertion, and allow pivot points to be moved across line wraps, but take care not to move outside the visible screen area.
| * | selection: update: get start-row pointer *after* modifying the start row indexDaniel Eklöf2021-01-04-5/+6
| | |
| * | selection: update: simplify: multi-column chars don’t span line-wrapsDaniel Eklöf2021-01-04-14/+8
| | |
| * | selection: wrap pivot_{start,end}->row before accessing grid row arrayDaniel Eklöf2021-01-04-5/+7
| | |
| * | selection: cancel: reset pivot coordinatesDaniel Eklöf2021-01-04-0/+2
| | |
| * | selection: update: find_word_boundary_{left,right}: coordinates are screen localDaniel Eklöf2021-01-04-4/+10
| | |
| * | selection: find_word_boundary_{left,right}: try to make the code more readableDaniel Eklöf2021-01-04-24/+24
| | |
| * | selection: find_word_boundary_{left,right}: handle multi-column charactersDaniel Eklöf2021-01-04-8/+40
| | |
| * | selection: find_word_boundary{left,right}: what we match depends on initial characterDaniel Eklöf2021-01-04-50/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the initial character is a space, find the next non-space character. If the initial character is a delimiter, find the next non-delimiter character (space, or word character). If the initial character is neither (i.e, it is a word character), find the next non-word character.
| * | selection: allow selections to pivot around a range instead of a pointDaniel Eklöf2021-01-04-26/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend selection pivoting to allow selections to pivot around a range. Use this in word- and row-based selections to pivot around the initial word/row that was selected. This mimics the behavior of at least urxvt and xterm.
| * | selection: find_word_boundary{left,right}: handle composed charactersDaniel Eklöf2021-01-04-0/+24
| | |
| * | selection: find_word_boundary_{left,right}: treat spacers as word charsDaniel Eklöf2021-01-04-4/+16
| | |
| * | selection: use selection_start() to initialize word/row-based selectionDaniel Eklöf2021-01-04-107/+104
| | | | | | | | | | | | | | | | | | This removes the selection_mark_word() and selection_mark_row() functions. To start a word/row-based selection, use selection_start() with SELECTION_SEMANTIC_{WORD,ROW}
| * | selection: don’t finalize selection when starting a word/row-based selectionDaniel Eklöf2021-01-04-2/+0
| | |
| * | selection: remember whether word-wise selection uses spaces only for delimitersDaniel Eklöf2021-01-04-2/+5
| | |
| * | changelog: double- or triple clicking then dragging extends word- or line-wiseDaniel Eklöf2021-01-04-0/+2
| | |
| * | selection: wip: update selection row-wise when initial selection was by rowDaniel Eklöf2021-01-04-3/+24
| | |
| * | selection: wip: update selection word-wise when initial selection was by wordDaniel Eklöf2021-01-04-58/+95
| | |
* | | render: codespell: accomodate -> accommodateDaniel Eklöf2021-01-04-1/+1
|/ /
* | render: draw combining characters on top of colored bitmap glyphs (emoji)Daniel Eklöf2021-01-04-16/+36
| |
* | input: don’t try to close an invalid FDDaniel Eklöf2021-01-04-3/+4
| |
* | input: don’t assert when receiving a button release without a press eventDaniel Eklöf2021-01-04-1/+20
| |
* | Merge branch 'hex2nibble'Daniel Eklöf2021-01-04-6/+8
|\ \
| * | uri: rename nibbletohex() function to hex2nibble()Craig Barnes2021-01-04-3/+3
| | | | | | | | | | | | It converts a hex digit to a nibble, not the other way around.
| * | uri: use nibble2hex() instead of isxdigit(3) to check valid hex digitsCraig Barnes2021-01-04-4/+6
| | |
* | | Merge branch 'blank-before-trailing-comment'Daniel Eklöf2021-01-04-3/+17
|\ \ \ | |/ / |/| | | | | Closes #270
| * | Add myself to ContributorsPeter Colberg2021-01-03-0/+1
| | |
| * | Require trailing comment to be preceded by a space or tabPeter Colberg2021-01-03-3/+16
|/ / | | | | | | | | | | Fixes `word-delimiters` option to not ignore `#` and subsequent characters. Closes #270
* | Merge branch 'macros'Daniel Eklöf2021-01-03-22/+87
|\ \
| * | Use wrappers from macros.h instead of bare GCC attributes/pragmasCraig Barnes2021-01-03-15/+17
| | |
| * | macros: add wrappers for more GCC/Clang attributes/pragmas/builtinsCraig Barnes2021-01-03-7/+70
|/ /
* | Merge branch 'box-drawing'Daniel Eklöf2021-01-02-1/+2159
|\ \ | | | | | | | | | Closes #198
| * | box-drawing: drop ‘pragma GCC optimize(“Os”)’Daniel Eklöf2021-01-02-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | “The optimize attribute should be used for debugging purposes only. It is not suitable in production code.” Luckily, it seems it really isn’t needed anymore; with all the other size optimizations that has been done since this was introduced, there is no longer any difference with or without this pragma.
| * | box-drawing: codespell: assymetrical -> asymmetricalDaniel Eklöf2021-01-02-2/+2
| | |
| * | box-drawing: add macros for {h,v}line_middle_mixed()Daniel Eklöf2021-01-02-24/+28
| | | | | | | | | | | | | | | | | | Mixed here refers to mixed thickness - the lines thickness doesn’t match the thickness of an abstract, orthogonal line going through the middle of the cell.
| * | box-drawing: LIGHT ARC: simpler way to adjust for asymmetrical arc when mirroringDaniel Eklöf2021-01-02-4/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When mirroring an arc, we need to adjust the mirrored position if the arc’s position in the cell is asymmetrical. This happens when *either* the line is odd sized, *or* the cell is. But not when both are. Thus, we can simply do a ‘thickness % 2 ^ width % 2’ when adjusting the position. Describe this in a comment.
| * | box-drawing: LIGHT ARC: use min/max instead of checking range inside loopDaniel Eklöf2021-01-02-10/+5
| | |
| * | box-drawing: LIGHT ARC: fix alignment of arcs when thickness is > 1pxDaniel Eklöf2021-01-02-29/+58
| | |
| * | box-drawing: LIGHT ARC: test using a circle equation instead of a bezier curveDaniel Eklöf2021-01-01-73/+35
| | |
| * | box-drawing: guard GCC pragma with #if defined(__GNUC__)Daniel Eklöf2021-01-01-1/+3
| | |
| * | box-drawing: do not inline any of the utility functionsDaniel Eklöf2021-01-01-21/+21
| | |
| * | macros: add NOINLINE (__attribute__((noinline)))Daniel Eklöf2021-01-01-0/+6
| | |
| * | box-drawing: dedicated functions to draw a full horizontal/vertical lineDaniel Eklöf2021-01-01-88/+60
| | |
| * | box-drawing: convert {h,v}line_middle_{left,right,up,down}() macros to functionsDaniel Eklöf2021-01-01-53/+56
| | | | | | | | | | | | This greatly reduces the size of the foot binary
| * | box-drawing: sextants: convert sextant_*() macros to functionsDaniel Eklöf2021-01-01-12/+41
| | | | | | | | | | | | While this doesn’t really reduce foot’s size, it is cleaner
| * | box-drawing: quadrants: convert quad_*() macros to functionsDaniel Eklöf2021-01-01-25/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | This reduces the size of the foot binary by ~4K; all the quad macros called ceil() and floor() twice per macro, which caused many float -> int -> float conversions in the expanded code. By using functions instead, there’s no expansion - the conversion only happens in one (well, four) places.
| * | box-drawing: reduce number of function argumentsDaniel Eklöf2021-01-01-579/+589
| | | | | | | | | | | | | | | | | | | | | | | | | | | We were using so many function arguments that a lot of the emitted code was just stack push and pops to pass around arguments. Bundle the buffer data, width, height, stride, and current DPI, into a single ‘buf’ argument. This greatly reduces the number of arguments to all functions.
| * | box-drawing: force minsize optimizationDaniel Eklöf2021-01-01-0/+2
| | |
| * | box-drawing: disable debug outputDaniel Eklöf2021-01-01-1/+1
| | |