Commit Graph

1529 Commits

Author SHA1 Message Date
686a69fedf zprofile: Add Go and Perl related dirs to PATH 2024-10-22 19:15:59 +02:00
92077b75bc zprofile: Set TERMINAL=st
This is used by xdg-open and similar.
2024-10-22 19:15:06 +02:00
2056bf2bea mime: Add mimeapps.list
Is used by xdg-open(1) and such to look up default applications for a
mimetype of a given file.

Link: https://wiki.archlinux.org/title/XDG_MIME_Applications
2024-10-22 19:02:04 +02:00
4ec1e81873 feh: Use theme configuration file instead of alias 2024-10-22 19:01:45 +02:00
e85f13def7 zsh:alias:feh: Add --start-at flag
I found this in feh's .desktop file and liked the idea:

With `--start-at` feh will load all files from the directory of the
given file and start the filelist at the given one.

This of course breaks easily if I want to pass more flags before the
file argument, but is easily fixed by first specifying the argument to
`--start-at` and continuing with the rest. I also rarely use any flag
besides the one already defined in the alias.
2024-10-22 18:46:14 +02:00
626855ec69 vim:keys:TODO: Add <leader>[hl] v-mappings
TODO: <SUBJECT>
2024-10-21 17:19:52 +02:00
79977eb81f tmux: Unbind <prefix> + arrow keys
I don't use them.
2024-10-21 17:14:17 +02:00
92289052ca tmux: Make <prefix>[hjkl] not repeatable
This is more than often annoying. For example when switching from a fzf
pane to a vim pane (i.e. needing these bindings instead of `C-[hjkl]`)
and then trying to move the cursor.

Reverts: 048933e67d ("tmux: Make `<prefix>[hjkl]` bindings repeatable")
2024-10-21 17:14:17 +02:00
f4d3a4364b vim:xdg: Fix updating spellfile through modeline
Setting `&spellfile` from the modeline is not allowed and will result in
an `E523: not allowed here` error. Fix the updating of the file by
additionally having an autocommand on BufWinEnter (i.e. after the
modeline was read).

TODO: Also get rid of the error message when rereading the modeline (:e)
2024-10-19 17:57:47 +02:00
d142200a6c dircolors: Recognize README.wiki.md as README 2024-10-18 17:32:33 +02:00
f9764de6d5 vim:keys:TODO: Handle errors when referencing commits 2024-10-18 16:13:36 +02:00
09f9ffbd8e vim:ftplug:gitcommit: Abbreviate buffer-locally
Abbreviate `cq` only in the current buffer (i.e. the commit message).
2024-10-18 16:13:36 +02:00
890c8526ee vim:ftplug:gitcommit: Abbreviate cq to %d | x 2024-10-18 16:13:36 +02:00
91be5135eb tmux: Remove completed TODO
Fixed: 7dcd00058f ("tmux:TODO: Do not modify selection when
scrolling")
Fixed-by: aa901099b0 ("tmux: Use C-[ey] for scrolling with the wheel")
2024-10-18 16:13:35 +02:00
3e9dcaff9d tmux: Paste primary selection with middle mouse
Similar to everywhere else, paste the primary X selection (XA_PRIMARY)
instead of the most recent tmux paste buffer.

TODO: Forward event to 'root' key-table to prevent code duplication
2024-10-18 16:13:35 +02:00
012d913901 tmux: Get rid of "Not in a mode" error
The copy command should only be executed when not in a mode (i.e.
alternate?). This gets rid of the error message "Not in a mode" when
double/triple clicking inside of vim etc..
2024-10-18 16:13:35 +02:00
37cb526728 tmux: Unbind default DoubleClick bindings
When switching to the 'SecondClick' event in 4b8e877305 ("tmux: Use
SecondClick instead of DoubleClick event"), I forgot to add an `unbind`
of the default binding that was previously overwritten. Since I just
resourced my config I didn't notice.
2024-10-18 16:13:35 +02:00
b61894fcc9 vim:ftplug:gitcommit:TODO: Adjust subject length limit 2024-10-16 14:57:38 +02:00
72770f6703 vim:setts: Don't wrap termdebug settings in aucmd 2024-10-16 14:53:39 +02:00
908cc494a2 vim:keys: Fix typo in comment 2024-10-16 14:53:39 +02:00
c7c130f050 vim:aucmd: Don't highlight trailing spaces in terminal 2024-10-16 14:53:39 +02:00
dd5663b564 vim:aucmd: Fix missing w:cword_timer_id error msg 2024-10-16 10:44:19 +02:00
8a101134c7 vim:ftplug:fzf: Complete list of TUI Unicode chars
This excludes more characters than needed.

Fixes: 86af2da785 ("vim:ftplug:fzf:TODO: Look up other Unicode chars")
2024-10-14 11:56:28 +02:00
aa901099b0 tmux: Use C-[ey] for scrolling with the wheel 2024-10-14 09:38:41 +02:00
9bc59bec72 tmux: Use 1-based indices for panes too 2024-10-07 13:23:14 +02:00
c27128fc5a vim:aucmd: Delay cword highlighting by 100ms
This should lead to better performance while scrolling through a file.
2024-09-30 11:46:03 +02:00
e7b287940f zprofile:compat: Use a subshell for fzf_keys
The `${(*)...}` parameter expansion flag was only introduced in
zsh-5.8.1.2-test, but EXTENDED_GLOB is needed for the `(#m)` globbing
flag. To support older zsh versions too, solve this by using a subshell
in which EXTENDED_GLOB is temporarily enabled.
2024-09-27 11:10:27 +02:00
778a3233f5 zprofile: Unset fzf_keys after use 2024-09-27 11:10:26 +02:00
942da616af zprofile: Rename fzf_opts -> fzf_keys 2024-09-27 11:10:26 +02:00
4cc3b6536c vim:keys: Keep cursor position on visual yank
The cursor is always moved to the beginning of the selection when
yanking in visual mode. This mapping resets the position back to where
it was.

Link: https://stackoverflow.com/a/3806664/20927629
2024-09-25 14:33:00 +02:00
bdbeada7aa vim:aucmd: Fix display of selection size indicator
Fixes: 29928505ff45 ("vim:aucmd:TODO: Fix display of selection size")
2024-09-25 14:33:00 +02:00
efea98f29c vim:aucmd:HighVisualSel: Abort on empty selection
When starting visual mode on an empty line (i.e. empty selection)
everything would get highlighted.
2024-09-25 14:33:00 +02:00
551db1f1d5 vim:aucmd:TODO: Fix display of selection size 2024-09-25 14:32:59 +02:00
b8f5d63b4c vim:keys: Fix triggering of hlsearch on n/N 2024-09-25 14:32:59 +02:00
459e0b7113 vim:keys:TODO: Modularize changes to ]]/][ maps 2024-09-25 14:32:59 +02:00
6f8fc406d6 vim:keys: Fix [[ mappings
I broke the default behaviour of jumping to open braces that are alone
on their line.
2024-09-25 10:54:57 +02:00
6a55f616cc vim:ftplug:fzf: Add another Unicode UI character
By the way: Apparently I committed the initial commit of fzf.vim and the
one adding the TODO accidentally together in 86af2da785
("vim:ftplug:fzf:TODO: Look up other Unicode chars").
2024-09-25 10:54:56 +02:00
b5bfb81931 fzf: Keep the current line selected when clearing 2024-09-21 01:26:27 +02:00
3c4f483a2c fzf: Add --highlight-line to DEFAULT_OPTS
Similar to vim's 'cursorline'
2024-09-21 01:16:00 +02:00
442a1c1bdc zsh:keys: Make ^E work in vicmd too 2024-09-21 01:06:32 +02:00
35422b6fc4 fzf: Use bfs for ALT_C_COMMAND if available 2024-09-21 01:04:44 +02:00
5552af5076 fzf: Suppress errors in FZF_DEFAULT_COMMAND 2024-09-21 01:02:08 +02:00
0b9d5a4815 zprofile: Add npm/bin to PATH 2024-09-21 01:01:18 +02:00
04fb10687f zprofile: Set XDG_STATE_HOME 2024-09-21 01:01:04 +02:00
86af2da785 vim:ftplug:fzf:TODO: Look up other Unicode chars 2024-09-21 00:53:23 +02:00
5b84d4ae55 vim:setts: Only one global status line
for more screen real-estate.
2024-09-21 00:37:43 +02:00
b299ea510f vim:ftplug:vimwiki: Copy markdown section folding 2024-09-21 00:33:24 +02:00
43bca5f51e vim:ftplug:md: Add ! to MdSectionFold definition 2024-09-21 00:30:40 +02:00
4c26fd98af powermenu: Change powermenu's text to format
This changed with some newer version of polybar
2024-09-21 00:26:39 +02:00
8811b81187 polybar: Configure use-ui-max & reverse-scroll 2024-09-21 00:25:32 +02:00