<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mirrors/foot.git/completions, branch 1.15.2</title>
<subtitle>A fast, lightweight and minimalistic Wayland terminal emulator</subtitle>
<id>https://git.0x0f.dev/mirrors/foot.git/atom?h=1.15.2</id>
<link rel='self' href='https://git.0x0f.dev/mirrors/foot.git/atom?h=1.15.2'/>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/'/>
<updated>2023-01-27T11:47:12Z</updated>
<entry>
<title>completions: bash: simplify awk command used to filter terminfo names</title>
<updated>2023-01-27T11:47:12Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2023-01-27T11:47:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=1823fa846ae8205c8bbe78204af599277a743896'/>
<id>urn:sha1:1823fa846ae8205c8bbe78204af599277a743896</id>
<content type='text'>
</content>
</entry>
<entry>
<title>completions: bash: complete option arguments for short options</title>
<updated>2023-01-10T19:56:12Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2023-01-10T19:56:12Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=becdcd9bb78a552e65f90d3ebb79d286f9496229'/>
<id>urn:sha1:becdcd9bb78a552e65f90d3ebb79d286f9496229</id>
<content type='text'>
</content>
</entry>
<entry>
<title>completions: bash: use "case" instead of long if/elif/else chain</title>
<updated>2023-01-10T19:44:24Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2023-01-10T19:44:24Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8acc10b9d4bc1d4c245475e1812093bf8c9e3d78'/>
<id>urn:sha1:8acc10b9d4bc1d4c245475e1812093bf8c9e3d78</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use "command -v" instead of "which" in bash completion scripts</title>
<updated>2023-01-10T18:34:25Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2023-01-10T18:34:25Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=7d28da50066601807b6790bbd77e2d8785e46884'/>
<id>urn:sha1:7d28da50066601807b6790bbd77e2d8785e46884</id>
<content type='text'>
The former is a built-in command in bash, whereas the latter is an
external command and isn't always necessarily available.
</content>
</entry>
<entry>
<title>change default log level to WARNING</title>
<updated>2022-11-22T15:22:22Z</updated>
<author>
<name>Antoine Beaupré</name>
<email>anarcat@debian.org</email>
</author>
<published>2022-11-18T16:07:16Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b80c7f75fea0c1a69471d1f67aa97b584d3e48b2'/>
<id>urn:sha1:b80c7f75fea0c1a69471d1f67aa97b584d3e48b2</id>
<content type='text'>
The default foot output looks like this, in Debian testing "bookworm"
at the time of writing:

    anarcat@angela:pubpaste$ foot true
    info: main.c:421: version: 1.13.1 +pgo +ime +graphemes -assertions
    info: main.c:428: arch: Linux x86_64/64-bit
    info: main.c:440: locale: fr_CA.UTF-8
    info: config.c:3003: loading configuration from /home/anarcat/.config/foot/foot.ini
    info: fcft.c:338: fcft: 3.1.5 +graphemes -runs +svg(nanosvg) -assertions
    info: fcft.c:377: fontconfig: 2.13.1, freetype: 2.12.1, harfbuzz: 5.2.0
    info: fcft.c:838: /home/anarcat/.local/share/fonts/Fira-4.202/otf/FiraMono-Regular.otf: size=8.00pt/8px, dpi=75.00
    info: wayland.c:1353: eDP-1: 2256x1504+0x0@60Hz 0x095F 13.32" scale=2 PPI=205x214 (physical) PPI=136x143 (logical), DPI=271.31
    info: wayland.c:1509: requesting SSD decorations
    info: fcft.c:838: /home/anarcat/.local/share/fonts/Fira-4.202/otf/FiraMono-Bold.otf: size=24.00pt/32px, dpi=96.00
    info: fcft.c:838: /home/anarcat/.local/share/fonts/Fira-4.202/otf/FiraMono-Regular.otf: size=24.00pt/32px, dpi=96.00
    info: fcft.c:838: /home/anarcat/.local/share/fonts/Fira-4.202/otf/FiraMono-Bold.otf: size=24.00pt/32px, dpi=96.00
    info: fcft.c:838: /home/anarcat/.local/share/fonts/Fira-4.202/otf/FiraMono-Regular.otf: size=24.00pt/32px, dpi=96.00
    info: terminal.c:700: cell width=19, height=39
    info: terminal.c:588: using 16 rendering threads
    info: wayland.c:859: using SSD decorations
    info: main.c:680: goodbye
    anarcat@angela:pubpaste$

That's 17 lines of output that are *mostly* useless for most use
cases. I might understand having this output during the project's
startup, when it's helpful for diagnostics, but now Foot just mostly
works everywhere, and I've never had a use for any of that stuff in
the (arguably short) time I've been using Foot so far.

And if I do, there's the `--log-level` commandline option to tweak
this. At first, I looked at tweaking the log level through the config
file. But as explained in this issue:

https://codeberg.org/dnkl/foot/issues/1142

... there's a chicken and egg problem there that makes it hard to
implement and possibly confusing for users as well.

There's also the possibility for users to change the shortcut with
which they start foot, for example a `.desktop` file so that menu
systems that support those start foot properly. But that only works in
that environment, and not through the so many things that will just
call `foot` and hope it will do the right thing.

In my case, I have `foot` hardcoded in a lot of places now, between
sway and waybar, and this is only going to grow. Others have suggested
adding the flag to a $TERMINAL global variable, but that won't help
.desktop users.

So, instead of playing whack-a-mole with the log levels, just make it
so that, by default, foot is silent. This is actually one of the
[basics of UNIX philosophy][1]:

&gt; Rule of Silence: When a program has nothing surprising to say, it
&gt; should say nothing.

And yes, I am aware I am severely violating that principle by writing
a way too long commit log for a one-line patch, but there you go, I
figured it was good to document the why of this properly.

[1]: https://web.archive.org/web/20031102053334/http://www.faqs.org/docs/artu/ch01s06.html
</content>
</entry>
<entry>
<title>completions: footclient: add -E,--client-environment</title>
<updated>2022-04-12T13:07:41Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2022-04-11T10:31:52Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f48955b26ec69c4885c3069a62285c55c5058a79'/>
<id>urn:sha1:f48955b26ec69c4885c3069a62285c55c5058a79</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix bash completion for lists of short options</title>
<updated>2022-02-03T17:49:54Z</updated>
<author>
<name>Nicolai Dagestad</name>
<email>nicolai@dagestad.fr</email>
</author>
<published>2022-02-03T16:31:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=0f49a8a0338dab302db877631068c0469cb88e19'/>
<id>urn:sha1:0f49a8a0338dab302db877631068c0469cb88e19</id>
<content type='text'>
</content>
</entry>
<entry>
<title>log: add LOG_CLASS_NONE and use as initializer for log_level</title>
<updated>2021-06-26T21:15:09Z</updated>
<author>
<name>Craig Barnes</name>
<email>craigbarnes@protonmail.com</email>
</author>
<published>2021-06-26T21:15:09Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5dca0458a09ebc586fda49c50533976f055d8de2'/>
<id>urn:sha1:5dca0458a09ebc586fda49c50533976f055d8de2</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>completions: add -o,--override to footclient</title>
<updated>2021-06-23T13:12:09Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-06-23T12:34:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=5b9a000b9b795598d559e46c47d6d4211ff22448'/>
<id>urn:sha1:5b9a000b9b795598d559e46c47d6d4211ff22448</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Override options from command line</title>
<updated>2021-06-12T08:05:15Z</updated>
<author>
<name>Ryan Farley</name>
<email>ryan.farley@gmx.com</email>
</author>
<published>2021-06-11T09:40:08Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=f379ffb8ed9bba0dafc2a7c1430ccb1a2517f99c'/>
<id>urn:sha1:f379ffb8ed9bba0dafc2a7c1430ccb1a2517f99c</id>
<content type='text'>
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
</content>
</entry>
<entry>
<title>Add: Bash completion for foot and footclient</title>
<updated>2021-03-17T12:10:28Z</updated>
<author>
<name>Simon Schricker</name>
<email>s.schricker@sillage.at</email>
</author>
<published>2021-03-13T18:04:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=b169623b642d44109bb073b7b7fe2f1e88a5da69'/>
<id>urn:sha1:b169623b642d44109bb073b7b7fe2f1e88a5da69</id>
<content type='text'>
* use toe for terminfo, thanks Craig.
* adds optional dependency on bash-completion for positional arguments

Co-authored-by: Craig Barnes &lt;craigbarnes@protonmail.com&gt;
</content>
</entry>
<entry>
<title>add changelog entry, completions and man entry for -N, --no-wait</title>
<updated>2021-03-13T11:07:08Z</updated>
<author>
<name>Felipe Trzaskowski</name>
<email>felipe.trzaskowski@gmail.com</email>
</author>
<published>2021-03-13T10:49:57Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=452830bd08e5429ac00be4529e8304ac0de1faa1'/>
<id>urn:sha1:452830bd08e5429ac00be4529e8304ac0de1faa1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>completions: fish: add -D,--working-directory</title>
<updated>2021-02-12T20:42:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T08:47:50Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=fc070dbdf1acde544ac50ce8ccb6c77c84c930a6'/>
<id>urn:sha1:fc070dbdf1acde544ac50ce8ccb6c77c84c930a6</id>
<content type='text'>
</content>
</entry>
<entry>
<title>completions: zsh: add -D,--working-directory</title>
<updated>2021-02-12T20:42:53Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-12T08:46:22Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=60e67b9c21f523e2a9e50408563d57b0a57dc91b'/>
<id>urn:sha1:60e67b9c21f523e2a9e50408563d57b0a57dc91b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>completions: fish: -d,--log-level</title>
<updated>2021-02-09T20:22:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-09T20:16:40Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=80cd3df790a16a10e827a355eed37373baf3b72f'/>
<id>urn:sha1:80cd3df790a16a10e827a355eed37373baf3b72f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>completions: zsh: -d,--log-level</title>
<updated>2021-02-09T20:22:16Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2021-02-09T20:13:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=2c5beed362e52c35d6b7498db993e09a335c5dd0'/>
<id>urn:sha1:2c5beed362e52c35d6b7498db993e09a335c5dd0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>completions/zsh: unbreak with BSD find(1)</title>
<updated>2021-01-23T08:52:42Z</updated>
<author>
<name>Jan Beich</name>
<email>jbeich@FreeBSD.org</email>
</author>
<published>2021-01-21T14:23:20Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=73522cec27759923ab38c18f5a660ac315db9d2b'/>
<id>urn:sha1:73522cec27759923ab38c18f5a660ac315db9d2b</id>
<content type='text'>
find: -printf: unknown primary or operator
</content>
</entry>
<entry>
<title>Add fish completion</title>
<updated>2021-01-08T17:37:33Z</updated>
<author>
<name>FollieHiyuki</name>
<email>folliekazetani@protonmail.com</email>
</author>
<published>2021-01-07T19:21:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=bb1b8bc7ca7c647fc34205225597f160d4aaf74c'/>
<id>urn:sha1:bb1b8bc7ca7c647fc34205225597f160d4aaf74c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>completions: zsh: foot: fix default path of foot.ini</title>
<updated>2020-12-08T18:49:14Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-12-08T18:49:14Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=e7c56b0b29f19592fbb5f9e28abf49f9301eedf1'/>
<id>urn:sha1:e7c56b0b29f19592fbb5f9e28abf49f9301eedf1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>foot/footclient: add short options to all command line options</title>
<updated>2020-11-23T18:19:19Z</updated>
<author>
<name>Daniel Eklöf</name>
<email>daniel@ekloef.se</email>
</author>
<published>2020-11-23T18:19:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0x0f.dev/mirrors/foot.git/commit/?id=8eaa1959904ecff0e7e75d152220344457912f76'/>
<id>urn:sha1:8eaa1959904ecff0e7e75d152220344457912f76</id>
<content type='text'>
e81388336750a20a2da98a57e9726c8ba1b481e3 added “missing” short command
line options to footclient.

Except they weren’t missing; they were intentionally missing short
options and only supported long options.

This commit makes the new/missing short options “official”, by adding
documentation, zsh completions and including them in usage().
</content>
</entry>
</feed>
