Commit Graph

1681 Commits

Author SHA1 Message Date
0b89388db0 tmux: Bind <C-o> to focus last-window 2024-05-02 11:21:49 +02:00
8b543f427c vim: Add en spellfile 2024-04-26 14:14:50 +02:00
19e3fbe7a0 zsh:alias: Update undescriptive comment 2024-04-26 14:05:33 +02:00
2aece4b672 zsh:alias: Add lsd to list all directories 2024-04-26 14:05:29 +02:00
31fcce9491 glog: Put angle brackets around email addresses
This makes it easier to copy the line and directly use it in git
trailers (e.g. Reviewed-by).
2024-04-25 11:40:26 +02:00
4251fec30e tmux: Change <C-a>! to place behind current window
Analog to <C-a>c the new window should be placed behind the current one.
2024-04-18 08:35:19 +02:00
15af1af190 git: Output in columns
Supported git commands should print their output in columns (e.g.
git-branch).

I am still unsure if I'd like to keep the option to fill rows first. The
default behaviour is columns first and `ls` does this too for example.
But I think that it makes more sense to fill the rows first, especially
with sorting by committerdate to delay the need to scroll as far as
possible.
2024-04-09 15:22:17 +02:00
b6cfd9c74a git: Sort branches by reverse committerdate 2024-04-09 15:22:17 +02:00
9db4b32f02 vim:aucmd: Make highlighting toggleable 2024-04-03 13:34:33 +02:00
06b987afa8 vim:aucmd: Put often used <cword> into variable 2024-04-03 13:34:19 +02:00
e84eaba7a2 vim:aucmd: Don't overwrite constants when sourcing
When resourcing the vimscript (i.e. writing it) currently three errors
are printed that constant values cannot be overwritten.
2024-04-03 13:32:23 +02:00
6dd226d305 zsh:diffcmds: Quote only once, for real now 2024-03-24 18:27:41 +01:00
e5593e1c98 zsh:diffcmds: Refactor: make code less redundant
Instead of always operating on `$@` and using complex parameter
substitutions, split `$@` once into two arrays and use those for
everything further.
2024-03-24 18:27:37 +01:00
52e5d1ab4d zsh:diffcmds: Do the quotation only once 2024-03-24 18:16:02 +01:00
09f437a860 zsh:diffcmds: Do not unquote pipes in args list
diffcmds echo foo %% cat -- '|'

is expected to output `foo | cat` and not `foo`.

Fix this by changing the order of the substitution and {,un}quoting.
2024-03-24 17:38:16 +01:00
ee31064286 zsh:diffcmds: Improve comments and example 2024-03-24 17:29:18 +01:00
f1f9f36d43 vim:aucmd: Reorder *Highlight* functions
Also improve their comments.
2024-03-24 16:56:12 +01:00
0006a778f9 vim:aucmd: Improve highlighting on mode changes
When entering visual mode it does not really make sense to keep the
cword highlighting but it should restart automatically (i.e. without
CursorMoved) when leaving back out of visual mode.

About directly starting selection highlighting I am still unsure since I
rarely ever want to highlight only one character and it could decrease
performance.
2024-03-24 16:56:12 +01:00
6260c84f3a vim:aucmd: Clear highlights on exiting visual mode
When exiting visual mode I want to clear the highlights of the visual
selection. As this is done automatically now, <Esc> does not need to do
it (and i had problems with keys.vim executing ClearHighlights because
of the script variables).

This reverts commit b3f1a469db ("vim:keys: Clear highlights on
normal-mode Esc").
2024-03-24 16:56:11 +01:00
bfccb0f089 vim:aucmd: Support multi-line selection highlight 2024-03-24 16:47:49 +01:00
4b8ab18392 tmux: Fix MouseDragEnd1StatusDefault for v3.4
move-window does not support format parsing. Apparently it was a bug
that it did in the past. Fix this by using run-shell - which I hate as a
solution.
2024-03-24 16:07:12 +01:00
ffc9877a70 git:last-changed: Print committer name too
I am still unsure if I want the author or committer name. For the date I
think it makes sense to have the committer date since it reflects better
when the branch last changed.
2024-03-24 13:50:12 +01:00
234f452434 git:make-fork: Add call to git-https-and-ssh
When setting up the remotes the fetch url can use https since the fork
will be public anyways. This delays a prompt for the ssh key until it is
really necessary.
2024-03-24 13:46:42 +01:00
803b35d3d5 zsh:p10k: Empty the second line of RPROMPT
I often get annoyed when I try to copy the command I typed but the
timestamp is also copied (e.g. with tmux line selection). Move the time
segment to the very right of the first line of RPROMPT which empties the
second line completely.
2024-03-22 10:09:16 +01:00
48acd729fe tmux: Do not enter copy-mode with Escape
I rarely use this binding as by now I have the muscle memory of `<C-a>[`
to enter copy-mode and since my brain thinks that I can press Escape if
I accidentally press the prefix and I get disappointed every time.
2024-03-22 10:09:16 +01:00
dc24dea0de tmux: Highlight zoomed pane in status more
Additionally to underlining it, highlight it by using a yellow
background.
2024-03-21 15:53:38 +01:00
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