Commit graph

266 commits

Author SHA1 Message Date
Daniel Eklöf
3c69a9c7e1
doc: ctlseq: add most of the remaining CSIs 2021-02-23 09:31:45 +01:00
Daniel Eklöf
a6e496ebca
doc: ctlseq: add ESC prefixed sequences 2021-02-23 09:31:45 +01:00
Daniel Eklöf
5539a7a02c
doc: ctlseq: add ‘origin’ column to OSC escape table 2021-02-23 09:31:45 +01:00
Daniel Eklöf
d74e62d65f
doc: ctlseqs: always write out the actual sequence
That is, don’t abbreviate ‘\E[‘ with ‘CSI’, or ‘\E]’ with ‘OSC’.
2021-02-23 09:31:45 +01:00
Craig Barnes
56ab820d3f
doc: ctlseqs: document private modes 47, 1047 and 1048 2021-02-23 09:31:45 +01:00
Craig Barnes
de64ef8410
doc: ctlseqs: document DECSET/DECRST and supported "private modes" 2021-02-23 09:31:45 +01:00
Daniel Eklöf
26d9f5a394
doc: ctlseqs: document OSC sequences 2021-02-23 09:31:44 +01:00
Daniel Eklöf
7d16fb1bbd
doc: ctlseqs: document supported DCS escapes
Signed-off-by: Daniel Eklöf <daniel@ekloef.se>
2021-02-23 09:31:44 +01:00
Daniel Eklöf
33b4fcad9f
doc: ctlseqs: minor readability tweaks 2021-02-23 09:31:44 +01:00
Daniel Eklöf
be49c3c0a6
doc: ctlseqs: copyable -> copiable 2021-02-23 09:31:44 +01:00
Daniel Eklöf
e2f20071a5
doc: ctlseqs: we’ll be using ‘OCS’ instead of \E] and ‘DCS’ instead of \EP 2021-02-23 09:31:44 +01:00
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