Commit Graph

1655 Commits

Author SHA1 Message Date
83945840b8 tmux: Rudimentary vim's text object simulation
Add non-robust emulation of vim's v_i{w,W,p,quote,'}.

TODO: Is there a better way of doing else-if?
2024-03-21 15:53:38 +01: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
3ec9dd6305 tmux: Place resurrect files in XDG_DATA_HOME
Unfortunately I need to hardcode XDG_DATA_HOME as resurrect-dir does not
support environment variables except for HOME and HOSTNAME.
2024-03-21 11:02:37 +01:00
a4405ee614 vim:keys: Change family of <C-w>gf mappings
The mapping to split and open the file under cursor exists by default
(not as I thought), but is not <C-w>gf but rather <C-w>f.

Swap the mappings for tab and split 'destination'.

Fixes: 8096917ad ("vim:keys: Open file in split with `<C-w>g[fF]`")
2024-03-18 14:39:03 +01:00
ed9ed6fd28 zsh:alias: Remove :q -> exit alias
I stopped using it in favor of Ctrl-D and see the downside that I might
close a shell by accident.
2024-03-18 12:05:39 +01:00
8096917ad4 vim:keys: Open file in split with <C-w>g[fF]
Open the file under the cursor in a split window similar to the rest of
the `<C-w>` mappings. I'm surprised this mapping does not exist by
default.
2024-03-07 13:09:41 +01:00
fc7aad6c1e git: Set diff.colorMovedWS to ignore-all-space
In addition to `diff.colorMoved` this controls how whitespace changes
should affect the detection of moved lines.
2024-03-07 12:31:14 +01:00
45901f95df tmux: Better window dragging through swap-window 2024-02-29 13:00:16 +01:00
2a9fba4af4 firefox: Make <C-Tab> cycle in recently used order 2024-02-29 11:37:51 +01:00
1d00e201a7 tmux: Support dragging into status bar
Additionally to dragging a window onto the target destination, add
support to drag it further than the outermost windows.
2024-02-28 16:07:31 +01:00
6d60e14824 tmux: Use move-window for window dragging
Use move-window for window dragging instead of a loop and swap-window.
When using -a or -b (i.e. after or before) the target can be occupied
and the windows are reordered automatically.
2024-02-28 16:07:31 +01:00
b3f1a469db vim:keys: Clear highlights on normal-mode Esc
Clear highlights from visual selection or word highlighting together
with the highlight of the search results.
2024-02-20 01:21:46 +01:00
7611f37f25 zsh:alias: Add --no-merges to gl
In the flat/non-graph view merge commits are a bit distracting. Still
unsure if I will forget about this and one day wonder why I don't see
merge commits.
2024-02-19 16:02:03 +01:00
6c545ab8b0 git:alias: Add recommit and last-msg 2024-01-29 04:17:17 +01:00
11f5a60039 zsh:alias: Pipe --help output into less 2024-01-25 17:45:46 +01:00
700c661e04 git:alias: Add clm for commit-last-msg 2024-01-25 17:45:00 +01:00
47cad5c079 zsh:p10k: Update to latest master 2024-01-15 15:15:23 +01:00
356f9ecd8b zsh:p10k: Remove VCS branch icon 2024-01-15 15:11:43 +01:00
99c247e937 zsh:p10k: Remove ok & err from pipe exit indicator
Also change the color of a failed command in a successful pipe to
orange.
2024-01-15 15:08:49 +01:00
92cc28c480 zsh:finddup(): Replace awk solution with uniq
Replace custom awk solution with uniq, by first flipping filename and
filesize so that uniq's `-f` flag can be utilized (as there is no
inverse of it, i.e. "only look at field n").

This increases performance by quite a bit.
2024-01-05 17:17:56 +01:00
30ef936fbd zsh:mvln(): Actually use $flags variable
Fix 5359298bed ("zsh:mvln(): Implement relative flag `-r`"), that
forgot to actually use $flags after adding it.
2024-01-05 16:27:23 +01:00
c9938374c2 zsh:alias:gpf: Add --force-if-includes
Make force push a bit safer.
2024-01-05 16:24:03 +01:00
be2205de32 zsh:alias:feh: Auto scale down and use grey bg 2024-01-05 16:22:30 +01:00
58243e0510 *: Update and add TODOs 2024-01-05 16:20:42 +01:00
5747b6e04c git:commit-last-msg: Make more robust
Use core.commentchar to identify commented lines and use the cut line
instead of just deleting from the first comment on, as this would break
for example in git generated messages (e.g. squashes).
2024-01-05 16:10:55 +01:00
3796e867d2 fzf: Add --no-require-git to FZF_DEFAULT_COMMAND
This way fd and rg utilize the gitignore when called from a non-git
parent directory too.
2024-01-05 15:31:04 +01:00
21668c657d zprofile: Add --hidden to rg version of FZF_CMD
Even though it is added already through .config/ripgrep/config, to make
it more consistent with the fd version.
2024-01-05 15:29:15 +01:00
c0fdb36c8e git:ignore: Add build/ 2024-01-05 15:26:20 +01:00
cb03f35f13 git:ignore: Match paths in every depth
Instead of matching certain paths relative from the root of the repo,
match them everywhere. I need this for non-git tools that read the
.gitignore file (e.g. fd and rg) to match/ignore the files when called
from a parent directory too. `./repo/.git` would otherwise not be
ignored.
2024-01-05 15:18:59 +01:00
0c049d235a fzf: Ignore venv and build dirs in default command 2024-01-05 15:16:16 +01:00
80af6263a3 envrc: Kill shell when accessing repo from eduroam 2024-01-05 13:54:15 +01:00
c86fb28a08 dircolors: Highlight TODO files in red too 2023-12-11 19:13:42 +01:00
8a8726c3cb bin:raw2preview: Takeover EXIF tags from TIFFs too 2023-12-07 02:57:03 +01:00
69baa73ebe dircolors: Add *.webp as image file 2023-12-07 02:57:03 +01:00
db3c25b5ba dircolors: Highlight README files in bright red 2023-12-07 02:57:02 +01:00
a1ae69ba98 dircolors: Change archive color to bright yellow
The red is too aggressive for a non-important thing as archives.
2023-12-07 02:56:40 +01:00
cc076cc205 zsh:opts: Revert disabling CDABLE_VARS
This reverts commit a205a7c5ce ("zsh:opts: Disable CDABLE_VARS").

The main reason why the option annoyed me was primarily because I had
stupid named dirs to begin with. Remove children of HOME, since I get
there fast anyways.
2023-12-04 20:47:39 +01:00
a0d79583f2 zsh:opts: Disable HIST_VERIFY
Most of the I am sure about it, and if not, I press Tab.
2023-12-04 20:43:01 +01:00
194e96b568 i3: Do not unmute when changing the volume
I want to be able to control the volume **before** unmuting.
2023-12-01 03:44:35 +01:00
15a95846e5 bash: Increase history file size
My zsh history was overwritten by bash, like it used to be before I
setup the bashrc. How did this happen again?
2023-12-01 03:43:06 +01:00
7909d24251 zprofile: Put zettelkasten notes into docs/notes/ 2023-12-01 03:41:50 +01:00
5359298bed zsh:mvln(): Implement relative flag -r 2023-11-30 18:44:15 +01:00
0213ad8f7d zsh:nameddirs: Add ws & ss for WiSe & SoSe 2023-11-24 13:34:09 +01:00
99701cf1a5 zsh:nameddirs: Change semester naming scheme 2023-11-24 13:27:54 +01:00
97f00e1dd0 zsh:keys: Bind Ctrl-Shift-G to insert-shcwd 2023-11-20 19:38:13 +01:00
93467176f6 zsh:keys: Set sensible fzf args for go-shcwd
Copy arguments from shell/key-bindings.zsh of the fzf repo.
2023-11-20 19:27:17 +01:00
4fceae683f git: Turn on diff.colorMoved 2023-11-18 13:36:34 +01:00
aa49c9324d fzf: Don't track automatically but add keymap 2023-11-10 14:35:33 +01:00
424be02df4 vim:aucmd: Highlight selection in all windows
Highlight the visual selection in all windows containing the current
buffer.
2023-08-22 19:29:00 +02:00
50eecf7e01 git:perm-stash: Use stash's ancestor as commit_ref
The stash does not necessarily apply to HEAD.
2023-07-18 14:33:55 +02:00