Commit Graph

1031 Commits

Author SHA1 Message Date
73529d673d vim:ftplugin:python: Change textwidth to 88 2023-06-23 23:14:56 +02:00
40dad5f672 zsh:diffcmds():TODO: Support own arguments
Support own arguments for example to switch the placeholder or the
diffcmd.
2023-06-23 23:13:17 +02:00
e3085efc46 zsh:diffcmds(): Handle some edge cases 2023-06-23 23:11:43 +02:00
3fea8b821a zsh:diffcmds(): Change ps subs depending on diff*
Process substitution via file descriptor/fifo should be preferred.
2023-06-23 23:09:42 +02:00
393f7ec6e1 zsh:diffcmds(): Add a layer of quotation
Add a layer of quotation as eval removes one. For example using
parameters in single quotes would still be expanded.
2023-06-23 22:36:58 +02:00
a4d1877341 zsh:diffcmds(): Build cmdline as an array
It seems nicer to build a new array instead of building a string and
then splitting it again.
2023-06-23 22:30:37 +02:00
6b0b8f738e zsh:diffcmds(): Rephrase comment to be more clear 2023-06-23 22:11:16 +02:00
ced1f1b7db zsh:diffcmds(): Get index of last -- occurrence 2023-06-23 22:03:28 +02:00
9350213939 zsh:diffcmds(): Use vimdiff depending on $EDITOR 2023-06-23 21:58:45 +02:00
7d1dff6fa9 zsh:diffcmds(): Abort without CMD 2023-06-23 21:43:52 +02:00
252be099fa zsh:diffcmds(): Improve usage printout 2023-06-23 21:43:44 +02:00
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
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
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