aboutsummaryrefslogtreecommitdiff
path: root/config.c (follow)
Commit message (Collapse)AuthorAgeLines
* config: rename at-most-2 (value for grapheme-width-method) to double-widthDaniel Eklöf2021-07-01-3/+3
|
* config: add tweak.grapheme-width-method=wcswidth|at-most-2Daniel Eklöf2021-07-01-0/+10
|
* config: add unit test for config_clone()Daniel Eklöf2021-06-30-0/+21
| | | | | | | | We’re mainly interested in seeing that we don’t leak memory, or double free heap allocated data. Valgrind and/or gcc/clang sanitizers are best at this, hence the very few asserts in the test itself.
* config: NOINLINE a couple of functions doing tll operationsDaniel Eklöf2021-06-30-4/+4
|
* config: remove replaced/removed key bindings, instead of marking as ‘unused’Daniel Eklöf2021-06-30-26/+132
| | | | | | | | | | | | Instead of keeping removed/replaced key bindings in the key binding array (marked as ‘unused’), remove them, by compacting the array. The invariant is thus that there should be *no* entries in the key binding list with the `BIND_ACTION_NONE` for action. Add code to debug builds that verifies this, plus a unit test. Closes #614
* log: add LOG_CLASS_NONE and use as initializer for log_levelCraig Barnes2021-06-26-2/+4
| | | | | | | | | | | | This means that logging will be completely disabled until log_init() has been called, which is useful to prevent log spam when running UNITTEST{} blocks in debug builds. Note that this doesn't change the default log level at runtime, which was already being set to LOG_CLASS_INFO in main.c and client.c. The new log level is also exposed to the command-line interface as `--log-level=none`, which allows disabling logging entirely.
* wip: grapheme shapingDaniel Eklöf2021-06-24-0/+30
|
* config: clone: fix font-list cloningDaniel Eklöf2021-06-23-1/+4
| | | | Need to copy over *all* members...
* config: add new function config_clone()Daniel Eklöf2021-06-23-94/+195
|
* tokenize: strdup() each individual argvDaniel Eklöf2021-06-20-23/+41
| | | | | Instead of referencing the un-tokenized “raw” command string, strdup() each argv. This way, the input string can be ‘const’.
* config: remove duplicated error logs for invalid colorsDaniel Eklöf2021-06-20-18/+6
|
* config: add csd.button-color optionDaniel Eklöf2021-06-20-0/+11
| | | | | | | | This option controls the foreground color of the minimize/maximize/close buttons. I.e. the color used to draw the minimize/maximize/close glyphs. It defaults to default background color.
* config: work around clang-11.0 issueDaniel Eklöf2021-06-18-62/+62
| | | | | | Clang-11.0 doesn’t seem to understand that our ‘static const’ key modifiers are compile-time constant. Clang-11.1 doesn’t appear to have this issue.
* config: don’t use tllist where it isn’t necessaryDaniel Eklöf2021-06-18-231/+292
| | | | | | | | | | | | | | | | tllists are great when dealing with dynamically changing lists. They are also very easy to use when building lists/arrays where the final size is unknown. However, this ease of use comes at a price: code size. tll-macros expand to a lot of code. Since things in the config are static, once the config has been loaded, using tllists for configuration data structures doesn’t make much sense. This patch replaces nearly all tllists used by the configuration, with dynamically allocated arrays.
* config: add underline-offset optionDaniel Eklöf2021-06-17-4/+13
| | | | | | | | This option allows the user to configure a custom underline offset. That is, use the user provided offset instead of the font provided one. Closes #490
* Override options from command lineRyan Farley2021-06-12-83/+154
| | | | | | | | | Allow any configuration option to be overridden with -o/--override 'section.key=value' arguments, as suggested in #554 update completitions for override slight refactoring to ease footclient support
* config: demote “no configuration found, using defaults” to a mere warningDaniel Eklöf2021-06-10-1/+1
| | | | | And don’t notify the user in the terminal window, only log it on stderr.
* config: change “no configuration found, using defaults” from error to warningDaniel Eklöf2021-06-10-1/+1
|
* config: add boolean option tweak.pua-double-widthDaniel Eklöf2021-06-01-0/+7
| | | | | | | When enabled, PUA (Private Usage Area) codepoints are always treated as double-width glyphs, regardless of the actual glyph width. Requires allow-overflowing-double-width-glyphs=yes
* config: add ‘include’ directiveDaniel Eklöf2021-05-28-19/+49
| | | | | | | | | | | | | | | This allows you to include sub-configurations. For example, theme files. The ‘include’ directive is a top-level keyword. I.e. it cannot be used inside sections. * The included file must be specified with an absolute path * The included file is parsed in its own scope * Nested includes are allowed * Multiple include directives are allowed Closes #555
* config: notify: change default value to use ${app-id}Daniel Eklöf2021-05-27-1/+1
| | | | | Make the default value of ‘notify’ use ${app-id} for icon and application name.
* config: bind ctrl+c to "cancel" in search/url mode by defaultCraig Barnes2021-05-25-0/+2
| | | | Closes #544
* config: url.protocols: make it comma separated, for consistencyDaniel Eklöf2021-05-22-5/+15
|
* config: add url.protocolsDaniel Eklöf2021-05-22-0/+66
| | | | | | | This makes the protocols recognized by auto-detected URLs configurable. Closes #531
* config: move url-mode related options to a dedicated section, ‘url’Daniel Eklöf2021-05-22-13/+87
|
* config: add cursor.underline-thicknessDaniel Eklöf2021-05-22-0/+8
| | | | | | | | | | | | | Works in pretty much the same way as ‘beam-thickness’, except that the default value is “the font’s underline thickness”. This means, that when unset, the cursor underline thickness scales with the font size. But, when explicitly set, either to a point size value, or a pixel size, it remains fixed at that size. Closes #524
* notifications: use \e[22m to disable boldDaniel Eklöf2021-05-20-4/+7
| | | | | | | | | | | \e[21m was previously used to disable bold. That changed a while ago, to align foot with the majority of other terminal emulators. \e[22m now disables both bold and dim. When this change was done, the user notifications were not updated, meaning the ‘message’ part was always in bold. This was never the intended behavior.
* config: add tweak.box-drawing-solid-shades=yes|noDaniel Eklöf2021-05-17-0/+9
| | | | | | | | | | When enabled, shades are rendered as solid blocks, using a darker variant of the current foreground color. When disabled, shades are instead rendered in a checker box pattern, using the foreground color unmodified. Default is enabled.
* Merge branch 'simplify-parse_section_colors'Craig Barnes2021-05-08-16/+14
|\
| * config: simplify parse_section_colors()Craig Barnes2021-05-08-16/+14
| |
* | config: simplify parsing of "scaling-filter" values slightlyCraig Barnes2021-05-08-12/+9
|/
* Merge branch 'config-code-size'Daniel Eklöf2021-05-08-71/+108
|\
| * config: avoid tll() code expansion when generating default bindingsDaniel Eklöf2021-05-07-28/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | tll_push_back() is a macro that results in quite a lot of instructions. Expanding this macro explicitly in many places thus causes code explosion. This is what happened in when we generate the default key/mouse bindings. Fix by calling tll_push_back() in a no-inline function. Reduces code size with ~4-5K
| * config: don’t inline str_to_*() functionsDaniel Eklöf2021-05-07-8/+8
| |
| * config: implement LOG_AND_NOTIFY_* macros in terms of no-inline functionsDaniel Eklöf2021-05-07-35/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reduces code size by quite a lot: From: section size addr .text 37857 0 ... Total 45169 To: section size addr .text 31681 0 ... Total 38993 LTO release build goes from 500K -> 492K
* | configure full color palette in foot.iniRyan Farley2021-05-08-1/+14
|/ | | | | Allow the use of numeric keys in [colors] to configure the full set of 256 colors in the palette. Fixes #489
* consistent booleans in config, reset legacy bellRyan Farley2021-05-07-3/+9
|
* clearly mark bell as a sectionRyan Farley2021-05-07-1/+1
|
* style, consistent bool names, deprecate old configRyan Farley2021-05-07-0/+26
|
* enhanced bell configurationRyan Farley2021-05-07-18/+34
| | | | | | | | | | Add a separate section for bell configuration, with a bell-specific command option and a setting to allow that command to run without regard to keyboard focus (for those of us who enjoy being beeped at at all times, for example). The actions are also no longer mutually exclusive; this is primarily anticipating urgency support which cannot be replicated outside the process (in server mode anyway) and would thus be complementary to any notification or arbitrary command.
* config: fix color cube generationDaniel Eklöf2021-05-06-3/+8
| | | | Closes #479
* config: add ‘beam-thickness’ optionDaniel Eklöf2021-04-30-3/+12
| | | | | | | | | | | * Rename cursor.style value ‘bar’ to ‘beam’. ‘bar’ remains recognized, but should eventually be deprecated and then removed. * Add ‘cursor.beam-thickness’ option, a pt-or-px value specifying the thickness of the beam cursor. Defaults to 1.5pt. * Rename (and export) pt_or_px_as_pixels() to term_pt_or_px_as_pixels() * Change term_pt_or_px_as_pixels() to round point values instead of truncating them.
* config: bold-text-in-bright: add ‘palette-based’ as a special valueDaniel Eklöf2021-04-17-3/+13
| | | | | | | | | When ‘bold-text-in-bright’ is set ‘to palette-based’, colors matching one of the 8 regular palette colors are brightened by using the corresponding bright palette color. Other colors, or all colors if ‘bold-text-in-bright’ is set to ‘yes|true’, are brightened by increasing the luminance.
* config: add box-drawings-uses-font-glyphs=no|yes optionDaniel Eklöf2021-04-09-0/+4
| | | | | | | | | When disabled, we render box drawing characters ourselves. This is the default. When enabled, we instead use font glyphs. I.e. no special treatment. Closes #430
* config/terminal: refactor: remove “default_*” color members from terminal structDaniel Eklöf2021-04-07-19/+38
| | | | Access the original colors in the configuration instead.
* config: make {search,url}_binding_action_map[] function localDaniel Eklöf2021-04-05-34/+34
| | | | | | | | | This ensures we don’t accidentally reference them from places we shouldn’t. Unfortunately, binding_action_map[] (for “normal” key bindings) cannot easily be made function local since it is used when parsing both key- and mouse bindings (i.e. it’s used in multiple functions).
* config: parse_key_binding_section(): use provided action-mapDaniel Eklöf2021-04-05-1/+1
| | | | | | | | Don’t call has_key_binding_collisions() with ‘binding_action_map’ unconditionally; use the provided ‘action_map’ instead. This fixes wrong error messages for key combo collisions in key binding sections other than the regular “key-bindings”.
* config: open_config(): remove unused argument ‘conf’Daniel Eklöf2021-03-16-2/+2
|
* input: repair key combos containing both explicit modifier and shifted symbolDaniel Eklöf2021-03-04-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a user-provided key combo contains both an explicit modifier, and the shifted symbol it produces, replace the symbol with its un-shifted version. Example: Control+Shift+U contains both ‘Shift’, and ‘U’, where ‘Shift’ is the modifier that shifts ‘u’ to ‘U’. Such modifiers are “consumed”, i.e. filtered out, when matching key combos. As such, Control+Shift+U will never trigger since we’ll never be able to match the consumed modifier ‘Shift’. The above combo can be written in two ways: - Control+U - Control+Shift+u To be able to detect that Control+Shift+U is an invalid combination, we need to check all *shifted* symbols for all key *codes*. Once we’ve detected a shifted symbol (and where it differs from the un-shifted symbol), we loop all modifier sets that produce the shift level where our shifted symbol is. For each such set, check if it intersects with the user-provided key combo’s modifier set. If there is an intersection, it means the user provided a key combo containing a modifier and symbol, such that the modifier is consumed when the symbol is produced. In this case, we replace the symbol with its un-shifted version.
* config: parse_key_combos: lower case manually, instead of calling tolower()Daniel Eklöf2021-03-04-1/+1
| | | | tolower() is locale dependent, something we do not want in this case.
* config: fix default key binding for extend-to-next-whitespaceDaniel Eklöf2021-03-04-1/+1
| | | | Bindings now use lower-cased keys
* input: rewrite of how we match foot’s own key bindingsDaniel Eklöf2021-03-04-9/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bindings are matched in one out of three ways: * By translated (by XKB) symbols * By untranslated symbols * By raw key codes A translated symbol is affected by pressed modifiers, some of which can be “consumed”. Consumed modifiers to not partake in the comparison with the binding’s modifiers. In this mode, ctrl+shift+2 maps to ctrl+@ on a US layout. Untranslated symbols, or un-shifted symbols refer to the “base” symbol of the pressed key, i.e. it’s unaffected by modifiers. In this mode, consumed modifiers *do* partake in the comparison with the binding’s modifiers, and ctrl+shift+2 maps to ctrl+shift+2 on a US layout. More examples: ctrl+shift+u maps to ctrl+U in the translated lookup, while ctrl+shift+u maps to ctrl+shift+u in the untranslated lookup. Finally, we also match raw key codes. This allows our bindings to work using the same physical keys when the user switches between latin and non-latin layouts. This means key bindings in foot.ini *must* not include both +shift+ and a *shifted* key. I.e. ctrl+shift+U is not a valid combo as it cannot be triggered. Unfortunately, this was how you were supposed to write bindings up until now... so, we try to detect such bindings, log a deprecation warning and then “fix” the binding for the user. When specifying bindings in foot.ini, both ctrl+U and ctrl+shift+u are valid, and will work. The latter is preferred though, since we cannot detect the raw key code for the former variant. Personally, I also prefer the latter one because it is more explicit; it’s more obvious which keys are involved. However, in some cases it makes more sense to use the other variant. Typically for non-letter combos.
* Fix typo.L3MON4D32021-03-01-1/+1
|
* config: reuse HAVE_TERMINFO via DEFAULT_TERMChloe Kudryavtsev2021-02-26-5/+1
| | | | | add detection in --help output also make it more easily accessible for other locations to change
* Merge branch 'rename-_errno'Daniel Eklöf2021-02-22-3/+3
|\
| * errno: don’t use ‘_errno’ as a variable name; _ are reserved for use as identifiersDaniel Eklöf2021-02-21-3/+3
| |
* | config: typo: osc8-underline=always means ALWAYSDaniel Eklöf2021-02-21-1/+1
| |
* | config: osc8-underline: default to ‘url-mode’Daniel Eklöf2021-02-21-1/+1
| |
* | urls: OSC-8 URLs can now optionally be underlined outside of url-modeDaniel Eklöf2021-02-21-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a new configuration option, ‘osc8-underline=url-mode|always’. When set to ‘url-mode’, OSC-8 URLs are only highlighted (i.e. underlined) in url-mode, just like auto-detected URLs. When set to ‘always’, they are always underlined, regardless of mode, and regardless of their other attributes. This is implemented by tagging collected URLs with a boolean, instructing urls_render() and urls_reset() whether they should update the cells’ ‘url’ attribute or not. The OSC-8 collecter sets this based on the value of ‘osc8-underline’. Finally, when closing an OSC-8 URL, the cells are immediately tagged with the ‘url’ attribute if ‘osc8-underline’ is set to ‘always’.
* | config: change default key binding for toggle-url-visible to ‘t’Daniel Eklöf2021-02-21-1/+1
| |
* | urls: add key binding that toggles whether URLs are displayed on jump-labelDaniel Eklöf2021-02-21-0/+2
|/ | | | | | | | | | | | | | | | | By default, the URL isn’t shown on the jump-label. For auto-detect URLs, doing so is virtually always useless, as the URL is already visible in the grid. For OSC-8 URLs however, the URL is often _not_ visible in the grid. Many times, seeing the URL is still not needed (if you’re doing ‘ls --hyperlink’, you already know what the URIs are). But it is still useful to have a way to show the URLs. This patch adds a new key binding action that can be used in url-mode to toggle the URL on and off in the jump label. It is bound to ctrl+t by default.
* config: add jump-label-letters optionDaniel Eklöf2021-02-13-0/+12
|
* config: refactor: add str_to_wchars(), use it when parsing word-delimitersDaniel Eklöf2021-02-13-8/+24
|
* Convert some uses of xassert(false) to BUG("some error message")Craig Barnes2021-02-09-1/+1
|
* Merge branch 'refactor-key-bindings'Daniel Eklöf2021-02-08-204/+76
|\
| * key-bindings: refactor: use a single type for all key bindingsDaniel Eklöf2021-02-08-204/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Up until now, the various key binding modes (“normal”, “search” and “url”) have used their own struct definitions for their key bindings. The only reason for this was to have a properly typed “action” (using the appropriate “action” enum). This caused lots of duplicated code. This patch refactors this to use a single struct definition for the “unparsed” key bindings handled by the configuration, and another single definition for “parsed” bindings used while handling input. This allows us to implement configuration parsing, keymap translation and so on using one set of functions, regardless of key binding mode.
* | misc: when free:ing tll lists, prefer tll_remove() over tll_free()Daniel Eklöf2021-02-08-4/+6
|/ | | | | | | | | | | | | | | | | | | In many places we have the following pattern: tll_foreach(list, it) free(it->item.thing); tll_free(list); Since all tll functions are macros, and thus inlined, and since tll_free in itself expands to a tll_foreach(), the above pattern expands to more native code than necessary. This is somewhat smaller: tll_foreach(list, it) { free(it->item.thing); tll_remove(list, it); }
* config: add colors.jump_labels and colors.urlsDaniel Eklöf2021-02-07-13/+55
| | | | | | | | | | * colors.jump_labels configures the foreground and background colors used when rendering URL jump labels. Defaults to “regular0 regular3” (i.e. black on yellow). * colors.urls configures the color to use when highlighting URLs in URL mode. Note that we aren’t currently doing any highlighting... Defaults to regular3 (i.e. yellow).
* config: use a packed bitfield for “use custom color” flagsDaniel Eklöf2021-02-07-2/+4
|
* config: add show-urls-copy actionDaniel Eklöf2021-02-07-0/+1
| | | | | | This works just like show-urls-launch, except that instead of opening the URL (typically using xdg-open), it is placed in the clipboard when activated.
* config: show-urls-launch: change default key binding to ctrl+shift+uDaniel Eklöf2021-02-07-1/+1
|
* config: rename ‘show-urls’ to ‘show-urls-launch’Daniel Eklöf2021-02-07-2/+2
|
* config: add ctrl+d as (yet another) default binding url-bindings.cancelDaniel Eklöf2021-02-07-0/+1
|
* config: add ‘url-launch’ option, defaulting to “xdg-open ${url}”Daniel Eklöf2021-02-07-17/+49
|
* config: free URL bindingsDaniel Eklöf2021-02-07-0/+1
|
* config: add infrastructure to handle URL mode specific key bindingsDaniel Eklöf2021-02-07-0/+120
| | | | | | * Add “show-urls” action to regular key bindings * Add url-bindings section to foot.ini * Add “cancel” action to URL mode key bindings
* config: promote tweak.resize-delay-ms to a real, supported optionDaniel Eklöf2021-01-26-14/+14
|
* render: delay TIOCSWINSZ while doing an interactive resizeDaniel Eklöf2021-01-26-0/+14
| | | | | | | | | | | | | | | | | | | Instead of disabling content centering, delay the TIOCSWINSZ (a.k.a delay sending the new dimensions to the client) by a small amount while doing an interactive resize. Non-interactive resizes are still immediate. For now, force a resize when the user stops the interactive resize. This ensures the client application receives the new dimensions immediately. It still works without the last, forced, resize, but there typically be a small delay until the client application receives the final dimensions. Closes #301 Closes #283
* config: selection-target: space-optimize the static ‘value’ arrayDaniel Eklöf2021-01-23-1/+1
|
* config: add ‘none’ as a possible value for ‘selection-target’Daniel Eklöf2021-01-23-12/+18
| | | | | | | When ‘selection-target’ is set to ‘none’, selecting text does not copy the text to _any_ clipboard. This patch also refactors the value parsing to be data driven.
* config: add new option ‘selection-target’Daniel Eklöf2021-01-23-0/+17
| | | | | This option controls the clipboard target that selected text should be copied to.
* meson: optionalize terminfo dependencyJan Beich2021-01-23-0/+4
| | | | | | | | ncurses on FreeBSD still uses termcap(5) while foot works fine with xterm-256color sans status line and visible bell. Having more than one ncurses version installed may break other applications. Document -Dterminfo=false uses --term=xterm-256color by default
* debug: rename assert() to xassert(), to avoid clashing with <assert.h>Craig Barnes2021-01-16-15/+15
|
* Print stack trace on assert() failure or when calling fatal_error()Craig Barnes2021-01-16-1/+1
| | | | | | Note: this uses the __sanitizer_print_stack_trace() function from the AddressSanitizer runtime, so it only works when AddressSanitizer is in use.
* config: add ‘select-extend-character-wise’ bind actionDaniel Eklöf2021-01-14-0/+2
| | | | | | | This forces the (new) selection mode to be character-wise when extending a word- or line-wise selection. Default key binding is ctrl+RMB.
* config: change default box drawing line thickness from 0.02 -> 0.04Daniel Eklöf2021-01-12-1/+1
|
* config: add temporary(?) tweak option for box drawing line thicknessDaniel Eklöf2021-01-12-0/+15
|
* config: pt_or_px cannot be a unionDaniel Eklöf2021-01-11-1/+1
|
* config: line-height, letter-spacing: values are in pt by default, but we allow pxDaniel Eklöf2021-01-11-45/+48
| | | | | | | | 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
|
* 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-2/+15
| | | | | | | | 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*.
* config: add line-height, letter-spacing, {horizontal,vertical}-letter-offsetDaniel Eklöf2021-01-11-0/+48
|
* config: add optional ‘center’ argument to ‘pad’Daniel Eklöf2021-01-06-2/+9
| | | | | | | | | | 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
* Require trailing comment to be preceded by a space or tabPeter Colberg2021-01-03-3/+12
| | | | | | Fixes `word-delimiters` option to not ignore `#` and subsequent characters. Closes #270
* fonts: size fonts using the scaling factor when output scaling is enabledDaniel Eklöf2020-12-17-3/+7
| | | | | | | | | | | | | | | | | | | This extends the new ‘dpi-aware’ option with a new default value, ‘auto’. When set to ‘auto’, fonts are sized using monitors’ DPI when output scaling is disabled. When output scaling is enabled, fonts are instead sized using the scaling factor. The reasoning here is that a user that has enabled output scaling is obviously *not* relying on DPI scaling. Output scaling can also be a way to compensate for different viewing distances, in which case we do *not* want to break that by using DPI scaling. Users can still force DPI-only font sizing by setting ‘dpi-aware=yes’, or disable it completely by setting ‘dpi-aware=no’.
* config_font_parse(): return fail/successDaniel Eklöf2020-12-15-8/+26
|
* config: add ‘notify’ to possible values for ‘bell’ in foot.iniDaniel Eklöf2020-12-10-5/+8
| | | | | When `bell=notify`, foot will trigger a desktop notification when it receives a BEL in an unfocused window.
* osc: implement urxvt’s “OSC 777;notify”Daniel Eklöf2020-12-09-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | OSC 777 is URxvt’s generic escape to send commands to its perl extensions. The first parameter is the name of the extension, followed by its arguments. OSC 777;notify is a, if not well established, at least a fairly well known escape sequence to request a (desktop) notification. The syntax is: \e]777;notify;<title>;<body>\e\\ Neither title nor body is escaped in any way, meaning they should not contain a ‘;’. Foot will split title from body at the *first* ‘;’. Any remaining ‘;’ characters are treated as part of ‘body’. Instead of adding built-in support for the freedesktop notification specification (which would require us to link against at least dbus), add a new config option to foot.ini: ‘notify’. This option specifies the command to execute when a notification is received. ‘${title}’ and ‘${body}’ can be used anywhere, in any combination, and as many times as you want, in any of the command arguments. The default value is ‘notify-send -a foot -i foot ${title} ${body}’
* config: remove support for scrollback-up and scrollback-downDaniel Eklöf2020-12-08-47/+2
|