33491571e2
vim:autocmd: Add TODO and wip code for old_cursor
...
The commented code seem to not work but I want to have the behaviour
when entering the command line too.
2022-11-21 16:36:53 +01:00
a0d68f9265
vim:autocmd: Highlight old cursor position
...
Highlight old cursor position as if the cursor was still there when
switching window focus.
This way I keep an overview of the cursor positions.
2022-11-21 16:31:58 +01:00
93ef5afaba
vim:autocmd: Update cword highlight in insert mode
2022-11-21 15:52:26 +01:00
ac99f373d3
vim:autocmd: Highlight cword with lower priority
...
Use a priority of below 0 so that the cword highlighting does not
overrule the highlighting of `hlsearch`.
2022-11-21 15:50:55 +01:00
762089cbee
vim:autocmd: Use matchadd to Highlight cword
...
Use `matchadd` instead of `match` as it has no limit on the number of
highlights.
Also call the function every time the cursor moved instead of only when
holding. This makes it snappier while also keeping the highlight when
moving inside the cword.
2022-11-21 15:46:50 +01:00
7a4e8e6df2
vim: Set only local value when cycling spelllang
...
When having multiple windows open, I want it to change only for the
current buffer/window.
2022-11-21 15:18:13 +01:00
a85f5ba81a
vim: Do not always highlight Umlaute as non-ascii
...
When the spelling language is set to German, they should not be flagged
and thus excluded from the regex.
2022-11-21 15:16:59 +01:00
90dc52b6c5
rofi:powermenu: Support systems with full systemd
...
When systemd is fully installed, `loginctl` does not support the actions
`reboot`, `poweroff` and `suspend`.
Fix this by using `systemctl` if installed.
2022-11-20 16:51:26 +01:00
8c0cd77700
zsh:alisa: Do not show line numbers in less
...
I rarely need them and can still activate them manually.
2022-11-14 13:03:02 +01:00
7e0dcacc09
zsh:alias: Add gha for git add -p
...
Similar to the `<leader>gha` ("git hunk add") mapping in my vimrc.
2022-11-11 16:44:48 +01:00
b8d2fc28df
zsh:alias: Sort git aliases
2022-11-11 16:44:34 +01:00
6aac7e7848
zsh:alias: Add gco for git checkout
2022-11-08 13:50:54 +01:00
7f318f0d3a
i3: Use updated Bitwarden executable
...
bitwarden was renamed to bitwarden-desktop.
2022-11-02 18:44:17 +01:00
684421d337
vim:autocmd: Start insert mode on new file
2022-11-01 16:55:42 +01:00
b22085777e
git:checkout-worktree: Remove tmp dir on error
...
When the git-worktree call exits with an error we can delete the
temporary directory as nothing is in it.
2022-10-27 23:52:17 +02:00
d1f51c0889
vim:plugs: Update vim-tmux-navigator
...
Update to include bindings for all modes, not only NORMAL.
2022-10-25 18:05:34 +02:00
c41e395325
vim:keys: Use non-vi versions of backward delete
...
The `vi-` versions stop working after using `push-input` and trying to
edit the reappeared line.
This could be an upstream bug, as I can recreate it with `zsh -f`.
2022-10-21 17:33:57 +02:00
aee241f3c3
tmux: Fix typo in miswritten extended-keys
...
extended_keys -> extended-keys
2022-10-21 15:15:13 +02:00
1930c8758f
zsh:keys: Make shift-return act like return
2022-10-21 11:05:18 +02:00
594e31d4b7
vim:coc: Customize completion menu mappings
...
When no item was inserted yet, the first tab should insert the first
item or the first shift-tab should select and insert the last item.
2022-10-21 03:34:10 +02:00
2d27e598b6
vim:coc: Use tabs for indentation
2022-10-21 02:05:21 +02:00
fc9f8f93ef
vim:coc: Fix issues with new version v0.0.82
...
- CheckBackspace needs to be used instead of <SID>CheckBackspace
- Comment out clashing/obtrusive leader/space mappings
- Change classobj mappings to use `o` as they were clashing with the
comment textobj.
- Simulate the default statusline with the help of 'statusline'.
Otherwise it would be empty/just containing coc elements.
2022-10-21 02:05:21 +02:00
928b1e8647
vim:coc: Add the remaining parts of suggested conf
...
"Lieber haben als brauchen".
2022-10-21 01:43:52 +02:00
3d44400c59
vim:plugins: Update coc.nvim to v0.0.82
...
Update the copied parts from the suggested config in the README.
2022-10-21 01:40:28 +02:00
77393007bf
vim: Move coc config into existing structure
2022-10-21 01:33:36 +02:00
350dd257f0
zsh:keys: Change ctrl-dot sequence to libtermkey
2022-10-21 01:25:36 +02:00
49e8e3a756
zsh:keys: Move through dirs like vims jumplist
2022-10-21 01:25:00 +02:00
286baf335f
zsh:keys: Shift-{,Back}space should act like w/o
2022-10-21 01:23:43 +02:00
8651b073eb
zsh:keys: Rely more on terminfo and use libtermkey
...
Introduce first mapping that follows the 'fixed keyboard input'[^1]
sequences. They allow the differentiation of all keys with each modifier
without gotchas like `tab` send the same sequence as `ctrl-i`.
[^1] - https://www.leonerd.org.uk/hacks/fixterms/
2022-10-21 01:22:52 +02:00
658797bda2
zsh:keys: Use vi- variants of navigation binds
...
They seem to be more consistent in doing the same/reversed thing when
triggering them backwards.
2022-10-21 01:22:51 +02:00
8de8151cbe
tmux: Activate extended_keys
...
With it libtermkey/libtickit[^1] mappings are supported.
[^1] - https://www.leonerd.org.uk/code/libtermkey/
[^2] - https://www.leonerd.org.uk/hacks/fixterms/
2022-10-21 01:21:48 +02:00
83e10f32da
vim:plugins: Hotfix broken packloadall w/ nvim 0.8
2022-10-21 01:03:17 +02:00
d6e7f2d9f2
meta:install.conf: Fix git hooks symlink path
2022-10-21 01:01:18 +02:00
b698873d2c
vim:keys: Fix BCommits and G blame mapping clash
2022-10-21 00:52:45 +02:00
b82405a8c0
meta:commit-msg: Allow all characters in prefix
...
There is no real reason for a restriction.
Also merge the two character groups.
2022-10-21 00:49:17 +02:00
a94f72c4d9
vim:keys:<leader>*: Start vim's search too
...
Additionally to start the search with ripgrep, start a vim search as
well. That way navigation between search results in the opened file is
easier.
The register is modified directly and hlsearch is turned on manually
instead of using the builtin `*`, so that the cursor does not move to
the next result in the current file.
2022-10-21 00:45:47 +02:00
1aa6266200
vim:keys: Fix <leader>* for words starting w/ b
...
`<C-R><C-W>` inserts the cword, but skips over any character that were
already typed. This broke the search for words beginning with a `b`.
2022-10-21 00:39:21 +02:00
298b205aa9
vim:coc: Add vimlang and json language server
2022-10-20 21:55:53 +02:00
d99118646c
git:alias: Add more short-hands
2022-10-20 16:40:16 +02:00
861b159c78
git:alias: Add multiple short-hand versions
2022-10-20 16:39:23 +02:00
e15fc71054
zsh,git: Add git-make-fork
2022-10-17 17:28:31 +02:00
bc0affc832
vim:autocmd: Do not mark stdin as modified
...
Set `nomodified` after reading from standard input. This way the buffer
can be closed without error message.
This will **not** disable modified warnings completely. If the input is
modified after read, vim will reset `modified` (As it should).
2022-10-16 02:01:25 +02:00
39e8b266d0
vim:keys: Add mapping to strip trailing whitespace
2022-10-16 01:57:16 +02:00
e2566444d4
polybar:audio: Display volume level when muted too
2022-10-16 01:57:16 +02:00
d327ddf79b
polybar: Ignore/abort on missing commands/files
...
Catch if the files needed in the battery module are missing and exit
early.
Do not mess up the bar by printing error messages. Instead abort.
2022-10-16 01:09:59 +02:00
e564bf0fe6
i3: Add binding to switch between visible monitors
...
I have not tested this with more than 2 monitors. I am unsure if the
binding will cycle through them or just between two.
2022-10-15 19:02:29 +02:00
61e8ccc176
zsh:glog: Add bindings for faster navigation
2022-10-15 19:01:18 +02:00
af2c96cd5c
zsh:glog: Cycle preview positions with ctrl-space
2022-10-15 18:57:11 +02:00
87e3232780
zsh:glog: Require 152 columns for preview on right
...
This seem to make more sense especially for smaller terminals where the
previous formula would have resulted in both sides being unreadable.
2022-10-15 18:56:26 +02:00
896970de81
vim:keys: Remove unused mappings to move lines
2022-10-13 18:48:35 +02:00