ce987f1f94
zsh:alias: Add count for sorted uniq -c
2023-06-21 13:32:54 +02:00
d5436fe0f9
zsh:alias: Add gcow for git-checkout-worktree
2023-06-21 13:31:10 +02:00
a2c27496eb
tmux: Reorder windows by dragging on status line
2023-06-15 15:32:03 +02:00
6b3f72c27c
tmux: Select last window if target is current
2023-06-15 13:47:31 +02:00
88e991f944
tmux: Add bindings to swap window with prev/next
2023-06-15 12:09:44 +02:00
6a36867d4d
tmux: Select windows with Alt-[0-9]
2023-06-15 12:04:23 +02:00
b4eba71b16
tmux: C-v should start the selection if inactive
2023-06-14 12:24:08 +02:00
d4d29b0c64
tmux: Use e prefix when comparing numbers
2023-06-14 11:17:23 +02:00
998c1c3fda
tmux: Better simulate vim's C-e & C-y
...
Keep the cursor position or selection while scrolling.
2023-06-14 10:58:07 +02:00
e6509c2651
vim: Create dict for special chars in languages
...
This way it is more easily extendable.
This also gives the possibility to modify it in ftplugins. I thought
about removing 'de' from the dictionary in the tex.vim ftplugin to
encourage using `\"a` and alike.
2023-06-08 17:18:00 +02:00
7e4ab97985
zprofile: Add --track to FZF_DEFAULT_OPTS
...
Leverage fzf's new `--track` flag.
2023-06-07 12:10:23 +02:00
613d3a572a
zsh:nameddirs: Pass hash args behind --
...
Prevent errors for directories that start with a dash.
2023-06-07 12:00:06 +02:00
d85dd89416
tmux: Make selfinsert binding C-v repeatable
2023-06-07 11:58:58 +02:00
b15920862b
git:ignore: Add tex_build
...
When compiling a document from inside vim, build files will be written
to tex_build. Ignore them. See .config/vim/ftplugin/tex.vim
2023-06-01 15:44:46 +02:00
5d4954f10e
vim:aucmd: Do not start in insert mode in new file
...
This is annoying when moving through the jumplist and jumping over a
deleted file (which now is a 'new' file).
2023-05-24 23:53:10 +02:00
68fdf4ec13
zsh:diffcmds(): Append args at the back w/o %%
2023-05-24 12:19:50 +02:00
fcfbf3354d
vim:diffcmds(): Error if no args were supplied
2023-05-24 12:19:49 +02:00
09ace58f59
zsh:funcs: Add diffcmds()
2023-05-24 12:19:49 +02:00
b64e5fef4d
vim:keys: Add <leader>g* analog to <leader>*
...
Do the same thing without the word boundaries.
2023-05-22 15:14:13 +02:00
52963bf2be
tmux: Mimic vim's Y in copy-mode-vi
2023-05-22 15:13:35 +02:00
6ec99f3af7
tmux: Emulate normal-mode y without selection
...
Try to mimic vim's normal and visual mode behaviour of `y`.
Set 'copy-command' for the copy-pipe commands to fall back to.
2023-05-22 15:12:59 +02:00
3944156168
tmux: Replace selfinsert.sh with a command-prompt
2023-05-22 14:47:48 +02:00
33be2cf3be
tmux: Cancel copy-mode with insert-mode bindings
2023-05-22 14:47:13 +02:00
0bb92e80c8
tmux: Clean up some comments
2023-05-22 14:02:17 +02:00
cc299641e5
tmux: Remove code redundancy with hidden variable
2023-05-22 13:49:37 +02:00
1a9780925a
tmux: Fix selfinsert key-table
...
Some keys were missing from the key-table (e.g. C-[hjkl]) as they were
set later in the config.
Fix by moving the script execution to the bottom of the config.
2023-05-22 13:24:30 +02:00
0a95d86e25
zsh:alias: Add gpf for git push --force
2023-05-22 00:12:40 +02:00
0ca1baec8c
vim:ftplugin:c: Exclude - from 'iskeyword'
...
They don't work well together (e.g. pointer arrow).
2023-05-21 16:07:51 +02:00
29f9e2bb91
vim:ftdetect: Detect *.h as C files
2023-05-21 16:07:20 +02:00
7065f4b043
keys:vim: Fix display of search count on n & N
...
When 'lazyredraw' is set the search count is not displayed. This seems
like a bug as it is being displayed if `n` and `N` are not remapped.
Fix this by shortly turning off lazyredraw and resetting it after.
This leads to the new problem that hlsearch is not triggered. It does
stay though after searching with `/<CR>`, so this is a smaller issue I
can fix later.
Found thanks to: https://github.com/kevinhwang91/nvim-hlslens/issues/34
2023-05-21 16:01:37 +02:00
848df05810
vim:keys: Fix <Tab>/<C-I> confused mapping
...
In a terminal with libtermkey support (e.g. my st build), <Tab> and
<C-I> can be differentiated.
Because of that the keys have to be mapped explicitly.
2023-05-12 12:06:46 +02:00
5f20d6d26f
vim:keys: Respect 'foldopen' on remapped movements
...
Execute 'zv' depending on the existence of the equivalent movement type
in 'foldopen'.
2023-05-12 12:05:20 +02:00
f18cc6f05a
vim:keys: Open folds on remapped movement commands
...
See 'foldopen':
> NOTE: When the command is part of a mapping this option is not used.
> Add the |zv| command to the mapping to get the same effect.
2023-05-12 12:04:43 +02:00
e81d3005c5
zsh:alias: Manually expand aliases anywhere
...
When passing a full command as arguments to another (e.g. `sudo`),
aliases are not expanded.
Add the `$` alias that makes it possible to expand a following alias
anywhere. This uses the feature that aliases ending in a space will
trigger alias expansion on the next argument.
See: https://unix.stackexchange.com/a/433849
2023-04-24 11:54:54 +02:00
b24541fb42
i3: Activate workspace_auto_back_and_forth
...
Switch back to the previous workspace by pressing the binding that would
focus the current workspace.
2023-04-20 00:15:33 +02:00
69d0290afd
i3: Remove bindings for stacked and tabbed layout
...
I never use these and always forget how to get back if I accidentally
press their bindings.
2023-04-20 00:14:25 +02:00
c349b7f058
polybar: Make i3's mode-label clickable to reset
...
Reset to the "default" i3 mode when clicking on the mode-label. This
makes it easy to recover from a mode without binding to `mode default`.
2023-04-19 23:44:01 +02:00
5deb69bbd6
git:checkout-worktree: Improve name on recursion
...
When calling git-checkout-worktree from inside a temporary working tree
(doesn't necessary need to be a recursive call, could be another shell
too) the name would be very long.
Fix this by using the folder name of the main working tree.
2023-04-11 23:24:52 +02:00
072204c10c
vim:keys: Discard stderr in FZF_CTRL_T_COMMAND
...
The prompt gets messed up on error messages from `find` (e.g. permission
errors). Discard them.
2023-04-11 22:49:15 +02:00
a68599d9ae
zsh:zprofile: Add $MBSYNCRC
...
Additionally to the mbsync alias that was already created, add
`$MBSYNCRC` so that mutt-wizards tools use the correct config as well.
2023-03-31 02:30:01 +02:00
7462b5a7af
vim:keys: Remove <C-U> uses behind <Cmd>
...
<C-U> is not needed when using <Cmd> for visual mappings.
Fix: fc9874bf97 ("vim:keys: Use <Cmd> for plain command mappings")
2023-03-22 13:19:41 +01:00
de001db473
tmux: Underline windows in status line when zoomed
...
I sometimes forget that windows are in zoomed state as I was missing a
visual indicator. Underline the window names in the status line to fix
that.
TODO: Move added code bit into a variable to prevent redundancy. I was
not able to get it to be expanded, in contrast it would just
insert the text literally.
2023-03-22 12:31:08 +01:00
4640dec63d
zsh:suffix(): Use zshisms to find --'s index
2023-02-27 14:13:54 +01:00
112b195d7b
zsh:keys:TODO: Rather insert line on ^R
2023-02-27 14:11:43 +01:00
e8a9f5d828
zsh:alias:TODO: Improve vim/fg wrapper
2023-02-27 14:10:17 +01:00
3066eed1c7
vim:keys:TODO: Fix search results center mappings
2023-02-27 14:09:32 +01:00
4808ba95a5
tmux:TODO: Display when pane is in fullscreen mode
...
Sometimes I forget that I maximized a pane as there is no visual
indicator.
2023-02-27 14:08:40 +01:00
7dcd00058f
tmux:TODO: Do not modify selection when scrolling
2023-02-27 14:07:04 +01:00
44e83ee8d6
git:glog:TODO: Better file arguments handling
2023-02-27 14:01:49 +01:00
3fac79115f
vim:keys: Fix &spell toggle mapping
...
I don't if something changed or if this was broken from the get to, but
now it is fixed.
2023-02-27 11:02:47 +01:00