Commit Graph

1634 Commits

Author SHA1 Message Date
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
d831a4140e vim:setts: Set cindent & preserveindent
For slightly better indentation.
2024-11-16 02:22:40 +01:00
9271350aab zsh:keys: Fix non-existing mapping of vi-kill-word
vi-kill-word does not exist. This change was lying around uncommitted
for ages now.

Fixes: 658797bda2 ("zsh:keys: Use `vi-` variants of navigation binds")
2024-11-06 13:56:27 +01:00
5af20402b9 vim:looks: Formatting 2024-11-06 13:53:25 +01:00
066f30a39f vim:au: Pass Funcref to timer_start
Apparently on older neovim versions, passing the name of script-local
functions to `timer_start` is not enough (in v0.10.2 this works, but
v0.7.2 not). Fix this by wrapping it in `function(...)` to pass a
Funcref.

See :h timer_start:

> timer_start({time}, {callback} [, {options}])
> [...]
> {callback} is the function to call.  It can be the name of a function
> or a |Funcref|.  [...]
2024-11-06 13:44:03 +01:00
1d86941a07 tmux: Remove unneeded semicolon 2024-11-06 13:33:54 +01:00
ca1483052b git: Set filetype in modeline
Github does not highlight syntax otherwise.
2024-11-06 13:29:48 +01:00
e82224684b zsh: Re-enable global rc files
I am not sure why I ever disabled them, but this goes way back to the
very first commit. Since some packages rely on /etc/profile.d/ to add
their location to PATH I want /etc/zsh/zprofile to source these. On my
current Manjaro machine it contains just this line:

    emulate sh -c 'source /etc/profile'
2024-11-06 02:51:31 +01:00
edb9a2920c dircolors: Set filetype in modeline 2024-11-06 02:48:32 +01:00
2437044ed6 vim:looks: Add function to easily see syntax stack 2024-11-06 02:44:28 +01:00
c5463595c0 vim: Rename aesthetics.vim to looks.vim 2024-11-06 02:44:03 +01:00
f404c150b1 vim:setts: Decrease 'scrolloff' (15 -> 5)
It's annoying sometimes.
2024-11-06 02:39:46 +01:00
a3fa9a043f vim:coc: Fix copy-paste error 2024-11-06 02:38:42 +01:00
965786d19a vim:ftplug:wiki: Fix completion with Tab 2024-11-06 02:37:06 +01:00