9ac408ccae
vim:aucmd:highVisualSel: Yank lines silently
...
When yanking multiple lines, a message stating that will appear. Make
this message silent.
2022-12-28 13:44:19 +01:00
aae84fd197
vim:aesth:highNonASCII: Add uppercase Umlaute
...
Forgot to add the uppercase Umlaute as well.
2022-12-28 13:42:48 +01:00
b559ff646b
vim:aesth:highNonASCII: Support multi-spelllang
...
`&spelllang` can be a list of multiple languages. Support that by
matching the language at the start, the end and/or between commas,
instead of comparing the value, and then appending to `l:ignore_chars`
for every matched language.
2022-12-28 13:40:50 +01:00
c2a657c609
vim:aesth:highNonASCII: Support spelllang=french
2022-12-28 13:39:46 +01:00
1360969ca4
vim:aesth: Refactor HighlightNonASCIIChars()
...
Make it easier to support other languages.
2022-12-28 13:32:02 +01:00
fe669c0aa7
vim:keys: Add visual equivalent of substitute maps
2022-12-28 13:23:05 +01:00
731a290d7b
vim:keys: Map <leader>" to s/"/'/g
...
I prefer single quotes when a language supports them for normal strings
(e.g. python & vimlang). Add this mapping for a quick conversion.
2022-12-28 12:57:13 +01:00
fd1cb36437
vim:keys: Rephrase wrap-move comment s/real/normal
2022-12-28 12:32:55 +01:00
6672387bee
zsh:funcs:finddup: Use byte size for first filter
...
Use the byte size as first filter instead of the size in 1KB blocks.
This way the filter is way more accurate and filters out more files
for which the md5sum does not need to be calculated.
2022-12-28 02:02:04 +01:00
6bb26ac2fd
zsh:funcs:finddup: Add TODO to use CRC instead md5
2022-12-28 01:56:55 +01:00
b38e01c72a
zsh:funcs:finddup: Support filenames with spaces
...
Previously when filenames contained spaces, the function would break as
`awk {print $2,$1}` would only print a part of the filename.
The field swap was used as a workaround so that `uniq` only compares the
sizes, and `uniq` unfortunately only has a flag to **skip** fields.
Fix this issue by using a short awk script that mimics `uniq` but only
with the first field (i.e. the size).
My awk foo is unfortunately not very good, and that is why the one-liner
prints out the first duplicated line multiple time. The `sort -u` pipe
afterwards gets rid of those.
2022-12-28 01:52:56 +01:00
df39b04cb2
zsh:ls-show-hidden: Take quotes in double brackets
2022-12-27 16:53:25 +01:00
3ddfadf360
zsh:ls-show-hidden: Fix listing of broken symlinks
...
The `-e` and `-d` checks fail if the file is a broken symlink, which
would lead to a 'No such file...' message for each of them.
2022-12-27 16:47:17 +01:00
c4125ddc25
zsh:ls-show-hidden: Fix ./ listing on non-existing
...
Fix a bug that ls-show-hidden always listed `./` when all other non-flag
arguments were non-existing (in addition to their 'No such file...'
message).
2022-12-27 16:45:06 +01:00
9b0e49b319
zsh:ls-show-hidden: Use short param expansion form
...
Use the short parameter expansion form where it leads to a better
readability in my eyes (e.g. "${dir:A}" -> "$dir:A" does not, I think.)
2022-12-27 16:39:40 +01:00
b93c4ee377
zsh:glog: Only pipe to fzf if stdout is a tty
...
This makes it easy to use `glog` in a pipe as replacement for `git log
--oneline`, for example to count the commits.
2022-12-27 04:27:21 +01:00
46ec34826e
vim:keys: Map display movements only when wrapping
2022-12-27 04:24:21 +01:00
92589d5423
polybar:vpn: Support wireguard connections
2022-12-26 23:54:27 +01:00
aa28483381
zsh:p10k: Support mullvads VPN network interface
2022-12-26 23:53:10 +01:00
3a7f06256f
vim:keys: Keep selection when changing indentation
2022-12-25 22:42:22 +01:00
4c111c0e3b
vim:keys: Make display-line movements the default
...
I'd rather have the movement mappings behave on display-lines to make it
easier when navigating in very long lines.
2022-12-22 10:55:16 +01:00
a14bc72716
vim:autocmd: Highlight visual selection
...
Highlight visual selection similar to the cword highlight. Restrict the
cword highlight to only normal mode.
2022-12-22 01:19:01 +01:00
66a231e8a8
vim:autocmd: Remove forgotten debug print
2022-12-22 01:16:38 +01:00
1ecacf8762
i3: Add mapping to screenshot the whole screen
2022-12-14 18:52:59 +01:00
1453dcf200
i3: Fix screenshotting with scrot
...
scrot parses `-sf` as `-s f` and complains about the invalid argument. I
This seem to have come with a newer version as I believe that this
mapping used to work.
2022-12-14 18:51:28 +01:00
8cf2a8d421
i3,polybar: Open nmtui in floating window
2022-12-14 18:49:43 +01:00
47150894c2
vim:ftplugin:markdown,tex: Turn on line-wrap
2022-12-12 11:24:19 +01:00
0ef3cd3723
vim:setts: Turn off line wrapping
2022-12-12 11:21:27 +01:00
9abf215871
vim:autocommands: Reset old_cword when deleting
...
When deleting the match, w:old_cword has to be unset as well. Otherwise
it can happen that it is not properly readded (e.g. when moving from a
word to an empty line and then back to the same word).
2022-12-06 15:34:33 +01:00
5ee98950eb
vim:autocmd: Check if same cword when highlighting
...
When highlighting the current word, check if it is the same as the
currently highlighted one, so that matchdelete and matchadd are not
called unnecessarily.
2022-12-06 15:31:53 +01:00
73c0864c8b
git: Add https-and-ssh to setup origin
...
Sets up origin so that it fetches over https but pushes over ssh. This
way unlocking the ssh key is only needed when really necessary.
2022-12-01 01:27:28 +01:00
a290c07acc
vim:settings: Improve line wrapping behaviour
2022-11-21 16:38:52 +01:00
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
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