Commit Graph

1147 Commits

Author SHA1 Message Date
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
c034191254 git: Add aur-package template folder
Use `init.templateDir` to use this.
2022-12-27 16:09:01 +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
3480b7fa46 bin: Add shcwd to get CWD of all running SHELLs
This script is meant to be used in the future in an interactive fzf
window bound to a key, so that one can quickly cd into the CWD of
another running shell.
2022-12-22 11:09:31 +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
026a58ff74 vim:plugs: Adjust vim-tmux-navigator symlinks
Let `start/vim-tmux-navigator` point to `opt/` which points to the repo
instead of directly from `start/`.
2022-12-22 10:39:23 +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
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