Lennard Hofmann Ordoviz
Loading Heatmap…

Ordoviz commented on issue dnkl/foot#110

unusual config file location

It bothers me a bit that `footrc` has the `rc` suffix despite not being a [run commands][1] file like `.bashrc`. Admittedly, many other programs like htop, isync, sxhkd, and kdenlive interpret `rc` as "run control", too. The new, additional location should be `.config/foot/foot.ini`. Specifying the file format makes syntax highlighting possible. [1]: https://en.wikipedia.org/wiki/Run_commands

3 months ago

Ordoviz deleted branch typos from Ordoviz/foot

3 months ago

Ordoviz created pull request dnkl/foot#90

Fix more typos

3 months ago

Ordoviz pushed to typos at Ordoviz/foot

3 months ago

Ordoviz closed issue dnkl/foot#86

Add “configure shell to emit OSC 7” to wiki

3 months ago

Ordoviz commented on issue dnkl/foot#86

Add “configure shell to emit OSC 7” to wiki

Great, thank you!

3 months ago

Ordoviz commented on issue dnkl/foot#86

Add “configure shell to emit OSC 7” to wiki

This works in Bash and Zsh: ```bash _urlencode() { local length="${#1}" for (( i = 0; i < length; i++ )); do local c="${1:$i:1}" case $c in %) printf '%%%02X' "'$c" ;; *) printf "%s" "$c" ;; esac done } osc7_cwd() { printf '\e]7;file://%s%s\a' "$HOSTNAME" "$(_urlencode "$PWD")" } ``` The previous `urlencode` even encoded the `/` necessary for seperating hostname and PWD. The new `_urlencode` only encodes `%`. Change it to your regex `[^A-Za-z0-9\/:_.\!~*\'\(\)- ]` if you want.

3 months ago

Ordoviz commented on issue dnkl/foot#86

Add “configure shell to emit OSC 7” to wiki

I personally don’t percent-encode `$PWD` because you don’t need it unless your directory contains a `%` followed by two digits (how ironic!). The solution on the wiki that users copy-paste should be as robust as possible, though. This is urlencode in pure Bash found on [askubuntu][1]: ```bash urlencode() { local length="${#1}" for (( i = 0; i < length; i++ )); do local c="${11}" case $c in [a-zA-Z0-9.~_-]) printf "$c" ;; *) printf '%%%02X' "'$c" esac done } ``` fish has urlencode builtin. In fact, the code snippet in the patch already uses it. > Might be a good idea to say which version “next version” is. Agreed. The pull request is tagged for 3.2.0 milestone. > Although it doesn’t really matter, it is (slightly) more correct to use \e\\ as OSC terminator instead of \a ;) You know escape sequences better than me. I copied the line from fish. [1]: https://askubuntu.com/a/295312

3 months ago

Ordoviz opened issue dnkl/foot#86

Add “configure shell to emit OSC 7” to wiki

3 months ago

Ordoviz commented on pull request dnkl/foot#28

Add logo

It is ready.

5 months ago

Ordoviz pushed to master at Ordoviz/foot

  • 6b889564f7 Add logo, fixes #27 The SVG can be scaled to any size, thus we only provide the "minimum" of PNGs as specified by XDG, see "Installing Application Icons" in https://specifications.freedesktop.org/icon-theme-spec/
  • d73b4b681e Add logo, fixes #27
  • Compare 2 commits »

5 months ago

Ordoviz commented on pull request dnkl/foot#28

Add logo

Should I fource-push a commit that removes all PNGs except for the 48×48?

5 months ago

Ordoviz commented on pull request dnkl/foot#28

Add logo

> perhaps we only need to install the SVG? To answer this I did some research: Most GNOME apps only install the SVG. Kdenlive, LibreOffice, gThumb additionally install PNGs that are optimized for their specific size. So the reason I gave in the original comment “most apps I have installed also install icons in these sizes” is no longer valid. However, [the Freedesktop spec][1] says that “minimally” a 48×48 PNG should be installed. I also think that a single PNG does not hurt too much. > How would you like to be mentioned? [Ordoviz](https://codeberg.org/Ordoviz) (because it is the name under which I am best known and the link allows me to give and change additional information) [1]: https://specifications.freedesktop.org/icon-theme-spec/latest/ar01s07.html

5 months ago

Ordoviz commented on pull request dnkl/foot#28

Add logo

You should also set this logo as the avatar in this repo’s settings.

5 months ago

Ordoviz created pull request dnkl/foot#28

Add logo

5 months ago

Ordoviz pushed to master at Ordoviz/foot

5 months ago

Ordoviz created repository Ordoviz/foot

5 months ago

Ordoviz commented on issue dnkl/foot#27

Design and create an icon for foot

We should change the border color to something more gray like c0bfbc to make is stand out more. If we do this, dcdccc does not look good as a foreground color, it is too similar. I like gruvbox (282828) as background and bright text (fbf1c7) but I do not care too much.

5 months ago

Ordoviz commented on issue dnkl/foot#27

Design and create an icon for foot

I did not plan to make a serious icon but apparently I did. This version uses the dimensions of a GNOME icon and is based on a [footprint][1] licensed under CC0. I tried to position everything on a 2px grid. I cleaned the Inkscape SVG manually and added metadata. The size of the SVG could be reduced further using [svgcleaner][2] if no further editing on the logo is planned. [1]: https://freesvg.org/human-footprints [2]: https://github.com/RazrFalcon/svgcleaner

5 months ago

Ordoviz commented on issue dnkl/foot#14

URL detection

An alternative with smaller performance impact is to only detect URLs on request, e.g. pressing a keybinding to pipe the current visible text to [xurls][1] and select a URL with [bemenu][2] if there are multiple. This also has the advantage that you do not need the mouse 😄. Alternatively, implement <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>f</kbd> to add jump markers to each visible URL to allow the user to choose one [qutebrowser style][3]. Kitty has this feature, it is called [hints][4]. [1]: https://github.com/mvdan/xurls [2]: https://github.com/Cloudef/bemenu [3]: https://github.com/qutebrowser/qutebrowser/blob/master/doc/img/hints.png [4]: https://github.com/kovidgoyal/kitty/tree/master/kittens/hints

5 months ago