Commit Graph

1659 Commits

Author SHA1 Message Date
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
d5aca3a946 fzf: Update 0.51.0 -> 0.54.1 2024-09-21 01:13:59 +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
56596fe154 polybar: Update pulseaudio formats
label-volume is not allowed anymore in newer versions of polybar, see
https://github.com/polybar/polybar/pull/3095 and use fork until (maybe)
merged.
2024-09-21 00:23:31 +02:00
274549dddc polybar: Use new builtin tray module
New in 3.7.
2024-09-21 00:15:33 +02:00
a6aa86f2e4 git:ignore: Add .ipynb_checkpoints
Created by Jupyter notebooks.
2024-09-21 00:07:26 +02:00
d30b102e42 git: Set merge.conflictstyle to diff3
Display original text in addition to changes from both sides.
2024-09-21 00:03:34 +02:00
ea2a02626d git: Test delta as diff-so-fancy replacement
Don't know yet if I like it better
2024-09-21 00:03:01 +02:00
9e19a19f76 git:alias: Fix sorting 2024-09-21 00:02:00 +02:00
7aee885ce8 git:alias: Fix flog -> glog typo
I never really use this but instead `glog` directly, but still.
2024-09-21 00:01:52 +02:00
0fd2e2d04f firefox: Don't hide tabs & searchbar in fullscreen 2024-09-20 23:58:37 +02:00
b97c0116b1 dircolors: Highlight dev-env files in yellow 2024-09-20 23:56:09 +02:00
9d756c2748 zsh:alias: Add duration that formats seconds 2024-09-20 16:29:51 +02:00
c273c3ac52 tmux: Manually "backport" scroll-middle if missing
First working draft
2024-09-18 16:30:45 +02:00
fceea7bc32 vim:fzf: Increase window size
Default/previous setting was:

    let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
2024-09-18 15:16:42 +02:00
61f1a7ee9b vim:keys: Cycle spelllangs only between en & de
If :h 'spelllang' is something else, do nothing.

A possible future improvement could be to keep a list of the languages
to cycle between and first adding any other languages to this list so
that one could return to the original setting. I see this especially
useful when the current setting is `en,de`.
2024-09-18 15:16:42 +02:00
f5673c2082 tmux: Respawn dead pane on Enter 2024-09-18 15:16:41 +02:00
c6b317f794 tmux: Fix C-e & C-y bindings
Apparently I broke them in commit 4e8ab80c66 ("tmux: Fix edge cases
in paragraph text-object") by adding the comments. Through them the
bindings were not set in place since the binding stopped with the
comment (I guess?). Weirdly I do not get an error message and the
default bindings stay, so I am not sure what exactly happens. This could
also be due to a version change from 3.3a to 3.4.

Fix the bindings by starting a code block instead of just escaping the
newline.

Do this also everywhere else to prevent errors in the future.
2024-09-15 22:44:52 +02:00
29e6b46135 tmux:textobjs:TODO: Merge all get_var calls
I want to minimize the needed calls to `tmux` to 2.
2024-09-04 16:38:52 +02:00
ec417a439c tmux:textobjs: Merge all copy-mode commands
`copy_exec` was stupid since it brought unnecessary shell overhead even
though it was meant to improve performance (one could argue that it is
not even necessary here).

Continue the idea of reducing calls to `tmux` by "globally" chaining
together all copy-mode commands instead of doing it only "locally" with
`copy_exec`. This has the added benefit that also calls having arguments
can be included and merged.
2024-09-04 16:38:52 +02:00
882ce0de93 tmux:textobjs: Reduce calls to tmux
Put multiple commands together in one tmux call instead of calling it
every time.
2024-09-04 16:38:52 +02:00
267814f075 tmux:textobjs: Fix faulty UTF-8 handling by cut 2024-09-04 08:00:40 +02:00
7e25fed27c tmux:textobjs: Implement more objects (`,[,(,<,{) 2024-09-04 08:00:40 +02:00
e54b1fc71a vim:keys: WIP fix swapping of ]] and ][
Make ][ and ]] work like they used to with the new functionality through
a workaround.

The problem is that recursive mappings are evaluated at runtime not
"compiletime" - which is what I would need in this situation.

I still want both mappings blocks so that they are not entangled and I
can turn each one off without affecting the other.
2024-08-30 18:14:20 +02:00
034db637c7 vim:keys: Relax [[ maps for different style guides
I use the [[ & etc. mappings to jump between function definitions in C.
This works as long as the braces are put on a newline (like in the
kernel coding style guide).

Relax the mappings for opening braces to jump to unindented lines with
an opening brace to cover also different style guides.
2024-08-30 18:14:20 +02:00
cab360ecf7 tmux: Require confirmation before killing a pane
It happened to me multiple times that I closed a pane without actually
wanting it via a (too) quick <C-d>.

Activate remain-on-exit so that I have to press <C-d> twice before the
pane is actually killed. Dead panes can be recovered with
`respawn-pane`.

Will see how this goes - could be annoying.
2024-08-30 18:14:20 +02:00