Commit graph

255 commits

Author SHA1 Message Date
Daniel Eklöf
42cf196420
doc: ctlseqs: we use ‘CSI’ not so much in the tables as in text 2021-02-23 09:31:44 +01:00
Daniel Eklöf
325bbf5e85
doc: ctlseqs: left most -> leftmost 2021-02-23 09:31:44 +01:00
Daniel Eklöf
59bee8016f
doc: ctlseqs: fix weird sounding sentence 2021-02-23 09:31:44 +01:00
Daniel Eklöf
51900a5efb
doc: ctlseqs: be consistent; use dash between ‘8’ and ‘bit’ 2021-02-23 09:31:44 +01:00
Daniel Eklöf
634116e637
doc: ctlseqs: escape backslashes 2021-02-23 09:31:44 +01:00
Daniel Eklöf
6594c39823
doc: ctlseqs: document SGRs, add TODOs 2021-02-23 09:31:44 +01:00
Daniel Eklöf
38e2700f74
doc: ctlseqs: document CC0 control sequences 2021-02-23 09:31:44 +01:00
Daniel Eklöf
2074f8b656
urls: OSC-8 URLs can now optionally be underlined outside of url-mode
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’.
2021-02-21 20:15:32 +01:00
Daniel Eklöf
4ff5154cb8
config: change default key binding for toggle-url-visible to ‘t’ 2021-02-21 20:15:31 +01:00
Daniel Eklöf
06a9ffa763
urls: add key binding that toggles whether URLs are displayed on jump-label
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.
2021-02-21 20:15:31 +01:00
Daniel Eklöf
d92d0a60d0
doc: foot.ini: notifications are inhibited while we’re focused
Closes #328
2021-02-14 11:22:07 +01:00
Daniel Eklöf
689a4cc741
Merge branch 'working-dir-command-line-option'
Closes #347
2021-02-14 11:17:08 +01:00
Daniel Eklöf
4118d23267
doc: foot.1: mention that the key sequence alphabet can be configured 2021-02-13 11:45:38 +01:00
Daniel Eklöf
d29ec4fd18
doc: foot.ini.5: document jump-label-letters 2021-02-13 11:43:02 +01:00
Daniel Eklöf
0de3340d36
doc: footclient.1: add -D,--working-directory=DIR 2021-02-12 21:42:53 +01:00
Daniel Eklöf
38b138bb14
doc: foot.1: add -D,--working-directory=DIR 2021-02-12 21:42:53 +01:00
Daniel Eklöf
a2020ad6e8
doc: foot.1: add missing short option to --login-shell 2021-02-12 21:42:53 +01:00
Daniel Eklöf
da7da4cba5
Merge branch 'log-level'
Closes #337
2021-02-11 19:00:09 +01:00
Daniel Eklöf
4ddd2cad91
doc: footclient.1: document -d,--log-level 2021-02-09 21:22:16 +01:00
Daniel Eklöf
50e9cfd2e6
doc: foot.1: document -d,--log-level 2021-02-09 21:22:16 +01:00
Daniel Eklöf
bdc5810ff4
meson: convert -Dterminfo from a boolean to a feature option
Patch from Jan Beich
2021-02-09 19:42:55 +01:00
Daniel Eklöf
0c847cfe7b
doc: foot.1: document the new URL mode 2021-02-07 16:33:35 +01:00
Daniel Eklöf
d63bc1a880
readme: add ctrl+shift+u, with description, to the list of default key bindings 2021-02-07 16:33:33 +01:00
Daniel Eklöf
e9c3d03837
config: add colors.jump_labels and colors.urls
* 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).
2021-02-07 16:33:33 +01:00
Daniel Eklöf
93181649b3
config: add show-urls-copy action
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.
2021-02-07 16:33:32 +01:00
Daniel Eklöf
b17a392b8c
config: show-urls-launch: change default key binding to ctrl+shift+u 2021-02-07 16:33:32 +01:00
Daniel Eklöf
0a1c5e44c4
config: rename ‘show-urls’ to ‘show-urls-launch’ 2021-02-07 16:33:32 +01:00
Daniel Eklöf
82e2541760
config: add ctrl+d as (yet another) default binding url-bindings.cancel 2021-02-07 16:33:32 +01:00
Daniel Eklöf
4233c806c3
config: add ‘url-launch’ option, defaulting to “xdg-open ${url}” 2021-02-07 16:33:31 +01:00
Daniel Eklöf
ee39966ded
config: add infrastructure to handle URL mode specific key bindings
* Add “show-urls” action to regular key bindings
* Add url-bindings section to foot.ini
* Add “cancel” action to URL mode key bindings
2021-02-07 16:33:31 +01:00
Daniel Eklöf
3a7588bc99
config: promote tweak.resize-delay-ms to a real, supported option 2021-01-26 19:32:21 +01:00
Daniel Eklöf
7cba42c5ce
doc: foot.ini: resize-delay-ms: language tweaks 2021-01-26 19:32:20 +01:00
Daniel Eklöf
d1a0892131
doc: foot.ini: explicitly say that 0 disables the delay 2021-01-26 19:32:20 +01:00
Daniel Eklöf
22a659881b
doc: foot.ini: resize-delay-ms 2021-01-26 19:32:20 +01:00
Daniel Eklöf
b8685e17ea
doc: foot.ini: selection-target=none|primary|clipboard|both 2021-01-23 10:44:19 +01:00
Jan Beich
15f2bebdcb
meson: optionalize terminfo dependency
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
2021-01-23 09:52:42 +01:00
Daniel Eklöf
767bd4f1db
config: add ‘select-extend-character-wise’ bind action
This forces the (new) selection mode to be character-wise when
extending a word- or line-wise selection.

Default key binding is ctrl+RMB.
2021-01-14 16:29:29 +01:00
Daniel Eklöf
5acdc89952
Merge branch 'box-drawing-line-thickness'
Closes #281
2021-01-14 10:49:39 +01:00
Craig Barnes
0791fba9c7 main: remove deprecated "--geometry" option
Closes #287
2021-01-13 20:01:05 +00:00
Daniel Eklöf
4f1b6a8ff3
doc: foot.ini: tweak: document box-drawing-base-thickness 2021-01-12 17:36:20 +01:00
Daniel Eklöf
baf7dcaae6
doc: foot.ini: remove mention of geometry; this option has been removed 2021-01-11 11:05:35 +01:00
Daniel Eklöf
b2864056a6
doc: foot.ini: dpi-aware: shorten sentence 2021-01-11 10:57:51 +01:00
Daniel Eklöf
3672451538
doc: foot.ini: line-height: “no set” -> “not set” 2021-01-11 10:56:40 +01:00
Daniel Eklöf
e850f820d4
doc: foot.ini: remove empty line after ‘font’ options 2021-01-11 10:55:28 +01:00
Daniel Eklöf
17339410ef
doc: foot.ini: line-height, letter-spacing and offsets are in points (by default) 2021-01-11 09:31:08 +01:00
Daniel Eklöf
d1f43371bb
doc: foot.ini: document line-height, letter-spacing and letter offsets 2021-01-11 09:31:07 +01:00
Daniel Eklöf
e8b673e7b2
doc: foot.ini: put ‘shell’, ‘login-shell’ and ‘term’ first 2021-01-11 09:31:07 +01:00
Daniel Eklöf
e14c592f39
config: add optional ‘center’ argument to ‘pad’
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
2021-01-06 11:17:29 +01:00
Daniel Eklöf
44b32104a7
doc: foot.ini: remove FONT FORMAT section, expand description of ‘font’ 2020-12-31 12:57:37 +01:00
Birger Schacht
4e67940fd7 Fix typo
programatically -> programmatically
2020-12-26 09:17:34 +01:00