Commit Graph

1167 Commits

Author SHA1 Message Date
e9d66576db ripgrep: Add --no-heading
Always print path as prefix (By default this is done only when stdout is
not a tty), as this makes it easier to browse a long list of matches.
2023-06-23 17:43:58 +02:00
063b0559c9 fzf: Use fd as default command if installed 2023-06-23 17:08:57 +02:00
0c4dfbf363 git:ignore: Add /.git
Ignore the .git directory globally instead of ignoring it manually in
tools like fd and ripgrep.

I feel very dumb for putting all this time into the redefinition of :Rg,
especially since I am currently **much** procrastinating writing my
bachelor thesis.
2023-06-23 17:03:29 +02:00
4f5d23bd15 zprofile: Add some bindings to FZF_DEFAULT_OPTS 2023-06-23 16:40:23 +02:00
b80f86d085 vim:plugins: Do not hardcode quotes in Rg redef.
They redefinition would fail if fzf.vim would ever change the quotes
used.
2023-06-23 16:23:12 +02:00
cb67a46c0b vim:plugins: Make Rg redefinition more robust 2023-06-23 15:59:24 +02:00
2ef89f4e81 vim:plugins: Redefine :Rg programmatically
Instead of setting a hard coded value, get the current definition of
:Rg, add `-g "!.git"`, and redefine the command.
2023-06-23 15:58:35 +02:00
2411a42e32 ripgrep: Add --hidden by default 2023-06-23 14:19:09 +02:00
2114987106 zprofile: Fix non-export of FZF_DEFAULT_NO_RG
I never really noticed but `$FZF_ALT_C_COMMAND` was never set as
`$fzf_default_no_rg` would be empty. Because the variable was not
exported, the X session would not have it in it's environment.
2023-06-23 13:36:23 +02:00
5d0616c34f bin:raw2preview: Add more tags to transfer 2023-06-21 13:37:53 +02:00
97f50919ec bin:raw2preview: Put output folder into a variable 2023-06-21 13:37:06 +02:00
0d45f2f61a zsh:suffix(): Use bfs if installed 2023-06-21 13:34:45 +02:00
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
28fa0c7fbc vim:plugs: Add vim-textobj-indent 2023-06-21 10:34:01 +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
a7440b25ac X11:xinit: Trying out faster key repeat time
Faster delay and quicker repeat.
2023-06-14 11:37:14 +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
2ebb117c77 fzf: Update to 0.41.1
From 0.29.0
2023-06-07 12:08:48 +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