Commit Graph

1497 Commits

Author SHA1 Message Date
a7f023ba1d git:ignore: Add compile_commands.json and .cache/ 2025-03-03 15:43:31 +01:00
90b64a8603 zsh:keys: Remove duplicate cd-up definition
I forgot that this was already a thing before d961daf38 ("zsh:keys:
Change one dir up on `^U`") and missed that I only moved the function in
the file instead of creating it (the changes were lying around a bit).
2025-02-19 15:18:05 +01:00
d961daf384 zsh:keys: Change one dir up on ^U 2025-02-19 14:01:24 +01:00
a053efa93e zsh:keys: Mention AUTO_PUSHD for cd-{back,for}ward 2025-02-19 14:01:24 +01:00
d57ee922c9 zsh:funcs: Add find() wrapper analog to bfs()
Only difference is that it places a trailing slash behind (empty)
directory names to differentiate them better. bfs does this already.

TODO: Bring these together into one function that checks $0
2025-02-05 16:53:14 +01:00
ed2b9e760c zsh:bfs(): Make sure that std{out,err} are ttys
When piping its output, I want the normal behaviour.

Also swap the if and else branches for better readability.
2025-02-05 16:53:14 +01:00
f60d25e47c zsh:bfs(): Don't print non-empty dirs by default
I sometimes use find (nowadays bfs) to get an overview of a directory.
In that case I want the output to be as short as possible.
2025-02-05 16:53:13 +01:00
767e5f3019 zsh:rmdir(): Don't change PWD when removing fails 2025-02-05 16:53:13 +01:00
6531800c4a markdown.vim: Don't set formatoptions
Automatic formatting is annoying and trailing whitespace is nothing I
want ever in my files.
2025-02-05 09:35:20 +01:00
2c55f45783 markdown.vim: Do not fold everything when loading 2025-02-05 09:35:18 +01:00
164d6b480f picom: Remove deprecated experimental-backends
This is the default since v10 and the option does not exist anymore.
2025-02-02 14:20:17 +01:00
202a0c1437 zsh:alias: Remove mbsync XDG config alias
mbysnc looks for $XDG_CONFIG_HOME/isyncrc
2025-01-30 11:46:11 +01:00
cd930fc9e8 tmux: Fix pane <-> window confusion in comment 2025-01-29 17:12:28 +01:00
6ff2aa3527 tmux: Cycle windows with Alt-Page{Up,Down}
Also change the only other use of PPage (i.e. PageUp) to PgUp. PageUp
and PageDown would probably be nicest, but I like that PgUp and PgDn are
of equal length. I dislike NPage and PPage.
2025-01-29 17:12:28 +01:00
c8c9d887f5 git:checkout-worktree: Echo non-zero exit code 2025-01-29 14:27:11 +01:00
558bb0582e man.vim: Check if WinResized is supported
WinResized was introduced rather recently with vim patch 9.0.0917 /
neovim v0.9.0 via commit 4571ba4d0a52 ("vim-patch:partial:9.0.0917: the
WinScrolled autocommand event is not enough (#21161)").
2025-01-29 14:27:11 +01:00
0c0231a2ef git:ssync: Add --new flag
I sometimes do not want to change the working tree of submodules I
changed locally.
2025-01-28 17:25:46 +01:00
b1a21fbdb0 vim:ftplug:man: Try to keep the position in file
How did I only test this while being at the top of the page?
2025-01-25 13:37:11 +01:00
f863f66542 vim:ftplug:man: Add comment to nospell setting 2025-01-25 03:04:35 +01:00
2842bba50c vim:ftplug:man: Move scrolling settings from zprofile 2025-01-25 03:02:07 +01:00
78917a686e vim:ftplug:man: Enable resizing with hard-wrapping
From :h :Man:

> when running `man` from the shell and with that `MANPAGER` [='nvim
> +Man!'] in your environment, `man` will pre-format the manpage using
> `groff`. Thus, Nvim will inevitably display the manual page as it was
> passed to it from stdin. One of the caveats of this is that the width
> will _always_ be hard-wrapped

Since I actually don't like `g:man_hardwrap=0`/`MANPAGER=999` (e.g.
scrolling can be a mess with very long wrapped lines), add an
autocommand that is meant to reload the manpage through `:edit` after
every resize, so that its hard-wrapping adjusts to the new size.

This is slightly hacky, but does its job quite well.

Move the man.vim into after/ftplugin so that it overwrites the `set
wrap` of the global ftplugin, which I want turned off, since it messes
with the buffer shortly when resizing.
2025-01-25 02:57:38 +01:00
467df52c66 vim:ftplug:man: Fix wrapping due to signcolumn
man(1) will assume it can use the full width of the terminal when
hard-wrapping the lines. When signcolumn is enabled the width is one
cell smaller and thus, lines that have a character in the last column
will be wrapped by vim (i.e. almost all of them).
2025-01-25 01:08:51 +01:00
5454b3c8a3 mutt: Rename accounts.{,mutt}rc and use relative path 2025-01-24 19:21:36 +01:00
2e41c11610 LICENSE: Bump year and update email address 2025-01-23 00:21:42 +01:00
e0c551fecc mutt: Include weekday in attribution date 2025-01-22 15:25:17 +01:00
e6460f9b42 mutt: Omit seconds in attribution time
Also rewrite RFC comment a bit to reflect better that the date/time is
not compliant (it hasn't been before either, but now even more).
2025-01-22 15:18:07 +01:00
3641615cad mutt: Include 'at' before time in attribution 2025-01-22 15:10:15 +01:00
1783ee681a glog: More sticky header improvements 2025-01-22 14:56:08 +01:00
c093a4ea37 tmux: Select last window with prefix+[0-9] too
This is already the case with M-[0-9].

prefix+0 was also still selecting window 0.
2025-01-22 14:54:29 +01:00
fde6aa06a4 vim:quick-scope: Only highlight on f,F,t,T 2025-01-21 18:32:17 +01:00
c47281e7b8 vim:plugs: Add quick-scope
> Lightning fast left-right movement in Vim.
>
> An always-on highlight for a unique character in every word on a line
> to help you use `f`, `F` and family.

Link: https://github.com/unblevable/quick-scope
2025-01-21 18:27:47 +01:00
f09d167673 fzf: Update 0.57.0 -> 0.58.0 and fzf.vim 2025-01-21 18:24:36 +01:00
e4cab6d581 git:https-and-ssh: Print new remotes when done 2025-01-21 18:22:19 +01:00
c6cdc6ec78 git:https-and-ssh: Swap the if blocks
My brain assumes that the first block handles the case of the url being
an https one if I read http in the condition. Swap them and negate the
condition for better readability.

This might be a symptom of this condition being to complex, but well -
it's shell scripting ¯\_(ツ)_/¯
2025-01-21 18:08:18 +01:00
149643a31f git:https-and-ssh: Fix ssh -> https
Apparently there was an issue with the conversion from ssh to https
which I never noticed? The script would replace the colon of the
`https://` and not the one after the domain:

    https///github.com:[...]

I rewrote both cases in a simpler way while fixing the issue.
2025-01-21 18:01:51 +01:00
83a1b0bc18 mutt: Send copies to myself for better threads 2025-01-20 17:54:00 +01:00
6dfad86d77 mutt: Improve reply and page-movement bindings 2025-01-20 17:51:29 +01:00
a7795cfd27 mutt: Go back to four digit years in index
My brain becomes confused with three blocks of two digit numbers.
2025-01-20 17:48:57 +01:00
3b9d0fdf4f mutt: Add basic mutt-wizard based config
This change was laying in a big WIP commit for ages now, waiting for me
to split and commit it nicely. The author date is thus quite far back in
the past.
2025-01-20 17:45:20 +01:00
411f9d8c62 i3: Bind r in resize mode for specific terminal width 2025-01-20 16:22:16 +01:00
a9acba0cde i3: Add binding to switch back to previous workspace 2025-01-20 16:22:16 +01:00
6c022fff67 i3: More robust workspace json parsing
Use the name instead of the number as that could be -1.
2025-01-20 16:22:15 +01:00
aa4af50cde glog: s/full/patch in header to understand the bindings 2025-01-08 11:21:07 +01:00
346b834712 fzf: Update 0.54.1 -> 0.57.0
The preview window is now resizable, yay!
2024-12-17 01:59:42 +01:00
522f2bfe95 dircolors: Add .aiff to audio files 2024-12-07 15:25:23 +01:00
59f12488b1 vim: Make trailing space highlighting more subtle
I sometimes work in files where I cannot remove trailing whitespaces (at
least not permanently). In these cases the background highlighting of
them is quite strong and can be a bit annoying. To make this more
pleasing, use the foreground to highlight trailing characters, as long
as tabs and trailing spaces are displayed as non-space characters.

For this I also set `trail` in `&listchars`, and while at it, merged the
two lines setting `&listchars` and cleaned up some comments.
2024-12-04 09:02:09 +01:00
cbacf728e6 vim:keys: Add e flag to [[ and ]] mappings
Let the search place the cursor on the curly brace instead of the start
of the line.
2024-11-20 12:55:19 +01:00
611e83b1c8 vim:keys: Streamline [[ and ]] mappings
Use the `s` flag, so that the position before the last jump is updated
automatically.

Use `<Cmd>` so that both normal and visual mode mappings become
identical and can be merged. This has the added benefit that it now also
maps in operator-pending mode.

Complete the TODOs.
2024-11-20 12:55:18 +01:00
b03bd05abf gitmodules: Fix http url 2024-11-20 11:07:19 +01:00
f5ec488b08 vim:keys: Better >> & << for tab-indent-space-align 2024-11-16 02:27:22 +01:00