Commit Graph

90 Commits

Author SHA1 Message Date
6cb3cbe30a kitty-cwd: Fix accidental absolute symlink 2025-05-30 00:27:05 +02:00
a34a00eae6 i3: Fix opening kitty in the current working dir
Since I run kitty with --single-instance, xcwd does not work for it.
Replace it with a short script that retrieves the CWD for the focused
window through the remote-control ls command.

This changes the current behaviour slightly, since now only terminals
are used and not any X window (which I rarely used or needed) and that
the working dir of the shell running in kitty will be used and not of
any deeper children. I'm still unsure if I want the latter back, but
will figure this out in the future.

This is an addendum to 0139294831 ("Use kitty instead of st as
terminal").
2025-05-27 18:24:06 +02:00
0c17ae8280 *: Use xargs instead of while read one-line loops 2025-05-27 17:00:35 +02:00
bbc6d5c9e0 git: Fix working directory of shell aliases
In git aliases, shell commands are executed from the top-level directory
of the repo. Because of this, something like `git glog -- file` didn't
work in subdirectories.

Fix this by creating a wrapper script that first changes into
$GIT_PREFIX before executing the script. Since (currently) the only
use-case is to launch the functions in `autoload/git/`, most of the path
could move into the script, making the git config a lot cleaner.
2025-05-23 16:30:58 +02:00
6a87b14611 gpg: Move gpg.loopback back to .config and symlink
It was moved back in 020b39887e ("gpg,git: Move gpg.loopback into
PATH"), because git had problems with the "dynamic" path of HOME. I like
to have everything at one place though (And I searched for this script
in the wrong place, just now).
2025-03-11 11:45:48 +01:00
f04bf65272 vim:wiki: Update to current master 2025-03-11 11:08:07 +01:00
f15ad722f4 vim:coc: Update and switch to release branch
This makes the installation via `yarn` obsolete (it was also outdated).
2025-03-10 16:21:39 +01:00
c47281e7b8 vim:plugs: Add quick-scope
> Lightning fast left-right movement in Vim.
>
> An always-on highlight for a unique character in every word on a line
> to help you use `f`, `F` and family.

Link: https://github.com/unblevable/quick-scope
2025-01-21 18:27:47 +01:00
f09d167673 fzf: Update 0.57.0 -> 0.58.0 and fzf.vim 2025-01-21 18:24:36 +01:00
346b834712 fzf: Update 0.54.1 -> 0.57.0
The preview window is now resizable, yay!
2024-12-17 01:59:42 +01:00
dc6bf773ea bin: Add fitX
Sometimes after an update my key repeat rate and touchpad settings are
messed up. This script fixes these quickly.
2024-11-04 23:14:52 +01:00
64758245f6 vim:plugs: Add tabular
To align text.
2024-11-03 16:54:58 +01:00
bdd25e579b vim:plugs: Add NrrwRgn (narrow region)
> This plugin is inspired by the Narrowing feature of Emacs and means to
> focus on a selected region while making the rest inaccessible. You
> simply select the region, call :NR and the selected part will open in
> a new split window while the rest of the buffer will be protected.
> Once you are finished, simply write the narrowed window (:w) and all
> the changes will be moved back to the original buffer.

I want this to be able to diff two portions of a file without the need
of creating temporary files. (And the ability to automatically bring
back changes sounds nice too.)

Link: https://github.com/chrisbra/NrrwRgn
2024-10-30 13:12:35 +01:00
96ebc4e824 vim:spf:en: Add 'lockdown' 2024-10-19 18:12:08 +02:00
ce13d89c5b *: Remove accidentally added file
I accidentally staged a temporary file in b61894fcc9
("vim:ftplug:gitcommit:TODO: Adjust subject length limit").
2024-10-19 18:10:53 +02:00
b61894fcc9 vim:ftplug:gitcommit:TODO: Adjust subject length limit 2024-10-16 14:57:38 +02:00
28fe5de626 vim:spf:en: Add 'endianness', 'globbing' & 'zsh' 2024-10-16 14:53:39 +02:00
2fd89ae3e9 vim:spf:en: Add 'overread' 2024-10-16 14:53:39 +02:00
d5aca3a946 fzf: Update 0.51.0 -> 0.54.1 2024-09-21 01:13:59 +02:00
9095d6667c fzf: Update 0.41.1 -> 0.51.0 2024-05-24 10:44:55 +02:00
8b543f427c vim: Add en spellfile 2024-04-26 14:14:50 +02:00
8c33a9bf96 tmux: Update tmux-resurrect
With commit dd36a4561b0b ("use XDG_DATA_HOME for resurrect-dir path")
the default location of resurrect-dir changed to
$XDG_DATA_HOME/tmux/resurrect as long as $HOME/.tmux does not exist.
This makes manually hard-coding resurrect-dir obsolete.
2024-03-21 11:02:37 +01:00
47cad5c079 zsh:p10k: Update to latest master 2024-01-15 15:15:23 +01:00
8a8726c3cb bin:raw2preview: Takeover EXIF tags from TIFFs too 2023-12-07 02:57:03 +01:00
d969fb3d5e bin:trans: Fix argument parsing 2023-06-26 13:32:02 +02:00
dd3de8d709 vim:plugs: Update vimwiki for Unicode support
My fix was merged to support unicode table separators. This has the
benefit that `|` now can be used in the cell content.
2023-06-25 23:49:10 +02:00
ed829f52e4 vim:plugs: Update vimtex v.2.8 -> v2.13
build_dir was deprecated for out_dir and aux_dir.
2023-06-24 18:18:12 +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
28fa0c7fbc vim:plugs: Add vim-textobj-indent 2023-06-21 10:34:01 +02:00
2ebb117c77 fzf: Update to 0.41.1
From 0.29.0
2023-06-07 12:08:48 +02:00
979d49612d bin:shcwd: Sort reversely
Sort the other way so that `/` is on the last line instead of the first.
2023-02-23 14:44:59 +01:00
780ddb1a40 direnv: Add rclone-mounts template 2023-01-11 22:03:19 +01:00
05bc93dc81 vim,tmux:navigator: Add fzf to processes regex
- Update vim-tmux-navigator to upstream/master
- Change remote to fork
- Do not change panes on C-[jk] when in fzf, as it is used for scrolling
  there
2023-01-04 13:04:42 +01:00
c034191254 git: Add aur-package template folder
Use `init.templateDir` to use this.
2022-12-27 16:09:01 +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
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
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
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
91a06e6796 monitor-setup: Do not discard error message 2022-10-09 19:51:03 +02:00
9e477ff5a4 monitor-setup: Put redundant arguments in fzf_args
# Conflicts:
#	.local/bin/monitor-setup
2022-10-09 19:51:03 +02:00
cfec9334ef monitor-setup: Support resolution and refresh rate
Also place multiple monitors side-by-side.
2022-10-09 19:51:03 +02:00
e0c0119a36 monitor-setup: Rewrite 2022-10-09 19:50:56 +02:00
7666086dba *: Move die() into .local/bin/helpers.sh
The function `die` was redundantly implemented in various files.

Move the function into .local/bin/helpers.sh and source that where
previously implemented.

Also prepend the program's name to the message and always terminate the
message with a newline. The newline was previously needed for a small
but unnecessary hack that prevented the need of the `[ -z "$1" ]` test.
2022-09-22 14:39:20 +02:00
4ccf7961b2 bin: Add trans to translate text with DeepL 2022-09-19 14:23:47 +02:00
2643445ed0 .local:bin:timetracking: Update tail command 2022-07-14 14:24:59 +02:00
8c6a2f1ba5 git:plugins: Update diff-so-fancy, git-filter-repo 2022-07-12 21:00:11 +02:00
0f38510810 vim:plugs: Add vimwiki 2022-07-12 21:00:06 +02:00
392bc1c49b tmux:plugs: Remove tmux-yank
It messes with mappings I set (e.g. `MouseDragEnd1Pane`) and brings no
real addition in functionality.
2022-07-12 21:00:04 +02:00
891cb063e6 git:filter-repo: Build manpage on installation 2022-07-12 21:00:02 +02:00