aboutsummaryrefslogtreecommitdiff
path: root/completions (unfollow)
Commit message (Collapse)AuthorLines
2025-11-12config: add toplevel-tag=TAGDaniel Eklöf-4/+10
Add support for the new xdg-toplevel-tag-v1 Wayland protocol, by exposing a new config option, `toplevel-tag`, and a corresponding command option, `--toplevel-tag` (in both `foot` and `footclient`). This can help the compositor with session management, or custom window rules. Closes #2212
2024-03-14completions: fish: fix path completion for --ptyDaniel Eklöf-1/+1
2024-03-14Add support for opening an existing PTYAlyssa Ross-2/+5
Virtual machine monitor programs (e.g. QEMU, Cloud Hypervisor) expose guest consoles as PTYs. With this patch, foot can access these guest consoles. Usually, the program used for accessing these PTYs is screen, but screen is barely developed, doesn't support resizing, and has a bunch of other unrelated stuff going on. It would be nice to have a terminal emulator that properly supported opening an existing PTY. The VMM controls the master end of the PTY, so to the other end (in this case foot), it just behaves like any application running in a directly-opened PTY, and all that's needed is to change foot's code to support opening an existing PTY rather than creating one. Co-authored-by: tanto <tanto@ccc.ac>
2023-01-27completions: bash: simplify awk command used to filter terminfo namesCraig Barnes-1/+1
2023-01-10completions: bash: complete option arguments for short optionsCraig Barnes-13/+13
2023-01-10completions: bash: use "case" instead of long if/elif/else chainCraig Barnes-43/+52
2023-01-10Use "command -v" instead of "which" in bash completion scriptsCraig Barnes-3/+3
The former is a built-in command in bash, whereas the latter is an external command and isn't always necessarily available.
2022-11-22change default log level to WARNINGAntoine Beaupré-3/+3
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]: > Rule of Silence: When a program has nothing surprising to say, it > 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
2022-04-12completions: footclient: add -E,--client-environmentDaniel Eklöf-0/+3
2022-02-03Fix bash completion for lists of short optionsNicolai Dagestad-2/+2
2021-06-26log: add LOG_CLASS_NONE and use as initializer for log_levelCraig Barnes-6/+6
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.
2021-06-23completions: add -o,--override to footclientDaniel Eklöf-1/+4
2021-06-12Override options from command lineRyan Farley-1/+4
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
2021-03-17Add: Bash completion for foot and footclientSimon Schricker-0/+160
* use toe for terminfo, thanks Craig. * adds optional dependency on bash-completion for positional arguments Co-authored-by: Craig Barnes <craigbarnes@protonmail.com>
2021-03-13add changelog entry, completions and man entry for -N, --no-waitFelipe Trzaskowski-0/+2
2021-02-12completions: fish: add -D,--working-directoryDaniel Eklöf-0/+2
2021-02-12completions: zsh: add -D,--working-directoryDaniel Eklöf-0/+2
2021-02-09completions: fish: -d,--log-levelDaniel Eklöf-0/+2
2021-02-09completions: zsh: -d,--log-levelDaniel Eklöf-0/+2
2021-01-23completions/zsh: unbreak with BSD find(1)Jan Beich-2/+2
find: -printf: unknown primary or operator
2021-01-23completions/zsh: unbreak with BSD find(1)Jan Beich-2/+2
find: -printf: unknown primary or operator
2021-01-21Add fish completionFollieHiyuki-0/+36
2021-01-08Add fish completionFollieHiyuki-0/+36
2020-12-08completions: zsh: foot: fix default path of foot.iniDaniel Eklöf-1/+1
2020-11-23foot/footclient: add short options to all command line optionsDaniel Eklöf-11/+11
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().
2020-11-22client: add new "--window-size-*" options to docs and CHANGELOG.mdCraig Barnes-0/+2
2020-09-08Add -W,--window-size-chars, and foot.ini:initial-window-size-charsDaniel Eklöf-1/+2
* Add -W,--window-size-chars command line option * Add initial-window-size-chars foot.ini option * Add -w,--window-size-pixels command line option * Add initial-window-size-pixels foot.ini option * Deprecate -g,--geometry command line option in favor of -w,--window-size-pixels * Deprecate geometry option in foot.ini in favor of initial-window-size-pixels
2020-08-02server/client: use $WAYLAND_DISPLAY instead of $XDG_SESSION_ID in default socket pathDaniel Eklöf-1/+1
Foot is a Wayland client and cannot be run outside of a Wayland session. As such, it makes more sense to use $WAYLAND_SESSION instead of $XDG_SESSION_ID in the default socket path since this makes it clearer which Wayland session we belong to. Closes #55.
2020-07-29main: add --check-config command line optionDaniel Eklöf-0/+1
2020-05-26completions: zsh: footclient: add --holdDaniel Eklöf-0/+1
2020-05-08completions: zsh: complete command/shell, and its argumentsDaniel Eklöf-4/+8
2020-04-20completions: zsh: -f,--font accepts multiple, comma separated valuesDaniel Eklöf-1/+1
2020-04-08completions: zsh: foot: default geometry is 700x500, not 700x50Daniel Eklöf-1/+1
2020-04-01conf: add 'title' conf option and --title command line optionDaniel Eklöf-0/+2
2020-04-01completions: zsh: repair -a,--app-id completionsDaniel Eklöf-2/+2
2020-04-01conf: add app-id config option and --app-id command line optionDaniel Eklöf-0/+2
2020-03-29meson: completions: join_paths() all the wayDaniel Eklöf-1/+1
2020-03-27client: add --maximized and --fullscreenDaniel Eklöf-0/+2
We now create a copy of the config for each client, and updates it with the values passed from the client. Since we're not actually cloning it (and e.g. strdup() all strings etc) we can't call conf_destroy() to free it, but need to free just the strings we've replaced.
2020-03-26foot: add --maximized and --fullscreen command line optionsDaniel Eklöf-0/+2
2020-03-15completions: zsh: don't strip spaces from font name completionsDaniel Eklöf-1/+3
2020-02-29config: change default geometry from 800x600 -> 700x500Daniel Eklöf-1/+1
If the display resolution *is* 800x600, using this size is bad since there will typically be panels and other things on the screen too. Not that 800x600 is something we expect to see in real life, but may happen on virtual displays.
2020-02-25main: geometry defaults to 800x600 pixelsDaniel Eklöf-1/+1
2020-02-20completions: zsh: add --login-shellDaniel Eklöf-0/+2
2020-02-05main: add --print-pid=FILE|FDDaniel Eklöf-0/+3
When specified, our PID is written to the specified file (or FD), after we've successfully started up.
2020-02-05main: add --print-pid=FILE|FDDaniel Eklöf-0/+1
When specified, our PID is written to the specified file (or FD), after we've successfully started up. Only applicable in server mode.
2020-02-04completions: zsh: --hold has no argumentsDaniel Eklöf-1/+1
2020-02-03Implement --holdDaniel Eklöf-0/+1
When specified, we don't exit when the slave/client process exits.
2020-01-09completions: zsh: add empty completions for options with required argumentDaniel Eklöf-1/+1
2019-12-17completions: zsh: footclient: auto-complete files for -s,--server-socketDaniel Eklöf-1/+1
2019-12-17completions: zsh: add -c,--configDaniel Eklöf-1/+2
2019-12-14completions: zsh: footclient: add -s,--server-socketDaniel Eklöf-1/+2
2019-12-14completions: zsh: foot: complete optional -s,--server PATH argumentDaniel Eklöf-2/+2
2019-11-01client/server: add -t,--term to footclientDaniel Eklöf-0/+7
2019-11-01completions: zsh: add --server and --term to completionsDaniel Eklöf-4/+10
2019-11-01client: a standalone binary that connects to a foot --serverDaniel Eklöf-0/+7
2019-10-20completions: add zsh completionsDaniel Eklöf-0/+16