Commit Graph

98 Commits

Author SHA1 Message Date
c09ed22389 i3: Move kitty daemonization into own script 2025-08-26 13:06:08 +02:00
8380d4cc29 bin: Add no-ansi to remove ANSI escape sequences
Similar to `no-ansi-sgr` but removes all ANSI escape sequence, not just
the SGR ones.

See the previous commit bbf9a1da58 (bin:no-ansi-sgr: Set LC_ALL=C for
`[0-?]` range, 2025-07-30) for an explanation of why LC_ALL has to be
set.
2025-08-04 11:00:14 +02:00
bbf9a1da58 bin:no-ansi-sgr: Set LC_ALL=C for [0-?] range
Setting LC_ALL=C makes it possible to use the range `[0-?]` instead of
splitting it into `[0-9:-?]` as done previously. Without LC_ALL, sed
complains with:

	sed: -e expression #1, char 21: Invalid range end

The GNU manual explains this partially, although I still don't quite
understand why this range specifically does not work in `en_US.utf8`.
See:

> Within a bracket expression, a *range expression* consists of two
> characters separated by a hyphen. It matches any single character that
> sorts between the two characters, inclusive. In the default C locale,
> the sorting sequence is the native character order; for example,
> `[a-d]` is equivalent to `[abcd]`.

Link: https://www.gnu.org/software/sed/manual/sed.html#Character-Classes-and-Bracket-Expressions
2025-08-04 11:00:01 +02:00
75fb2f56a2 bin:no-ansi-sgr: Conform to specification
Previously - in the existence of other ANSI escape sequences - the
script deleted text due to the too broad regex. For example in:

    foo^[[K bar m

everything behind `foo` was deleted. Thus, only remove SGR sequences by
only matching the spec-allowed bytes.
2025-08-04 11:00:00 +02:00
5078b6a63f *.sh: Fix some shellcheck issues 2025-06-27 12:59:13 +02:00
e9bb145fe1 vim:plugs: Add quickfixdd
> tiny vim plugin to allow dd inside quickfix buffer

Link: https://github.com/TamaMcGlinn/quickfixdd
2025-06-24 14:27:10 +02:00
4b5dbd161a zsh:autosuggestions: Switch to history strategy
I don't feel as if I'm actively benefiting from match_prev_cmd and it
definitely makes my prompt slower. (One could probably make it faster by
pre-calculating the history events matching the (previously) executed
command in a preexec zsh-hook and then comparing each successor to the
currently typed command instead of repeating all the work every time
BUFFER changes)

With this change my fork is not needed anymore, so switch back to
zsh-users' repo and update it while at it.

This effectively reverts 77b2d63341 ("zsh:autosuggestions: Use own
fork for now").
2025-06-24 00:06:33 +02:00
3f621617ef less: Open file (also stdin) in vim with e/E
The current file can be edited with `v` already, but this doesn't work
when reading from stdin.
2025-06-20 15:41:35 +02:00
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