Commit Graph

28 Commits

Author SHA1 Message Date
0af6c9fb24 zsh:keys: Fix override of fzf-cd-widget
This commit addresses a couple of issues:

1. fzf's `key-bindings.zsh` was sourced twice: Once in keys.zsh and once
   via the symlink in `external-plugins/`. Fix this by removing the
   source in `keys.zsh`.

2. The section about the fzf bindings in keys.zsh was a mess. Reorder
   and rewrite some comments to make it nicer.

3. My just added custom `fzf-cd-inplace-widget` does not work like this.
   Since `key-bindings.zsh` is sourced (was sourced again) after
   `keys.zsh`, my override is overridden itself by the default. I
   noticed and fixed this when I originally wrote and tested the
   function, but unfortunately I forgot the old `bindkey` commands in
   `keys.zsh`, which is why I now forgot about it and committed this
   erroneously. To fix this, bind the keys after sourcing
   `key-binding.zsh` in the newly added `fzf.key-bindings.config.zsh`.
   Additionally, move the widget definition as well to have everything
   at one place.

Fixes: 3cf445e739 (zsh:keys: Modify fzf's cd widget to be "in-prompt",
       2025-08-06)
2025-08-06 13:30:56 +02:00
d9feb1d468 zsh:p10k: Add custom Session.vim prompt segment 2025-07-09 01:27:37 +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
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
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
58243e0510 *: Update and add TODOs 2024-01-05 16:20:42 +01:00
aa28483381 zsh:p10k: Support mullvads VPN network interface 2022-12-26 23:53:10 +01:00
127cce45a1 zsh:p10k: Add vim modeline 2022-07-12 21:00:01 +02:00
ce4b8fa3dd zsh: Only source *.zsh files
Only source `*.zsh` files to prevent confusion or errors on startup.

Rename all files in 90-external-plugins accordingly.
2022-06-23 23:58:49 +02:00
a912530f6f zsh:p10k: Modify context segment format template
Display only `user` when not in a remote shell and `user@hostname` when
connected.

Display the content in bold when running with privileges (no SSH & SSH).
2022-06-23 23:58:49 +02:00
33f9a34895 zsh:p10k: Move bg-jobs, exec-time & status to end
Have those three always the furthest right in the `RPROMPT`. Also
reorder them to be in this order (up -> down : left -> right):

    - background_jobs
    - command_execution_time
    - status
2022-06-23 23:58:48 +02:00
0ba0c04c56 zsh: Use $+commands[] instead of command -v 2022-03-31 00:46:46 +02:00
11530608c9 zsh:p10k: Reenable time segment
I disabled that in the past but want have it again.
2022-03-10 14:57:17 +01:00
72c616d378 zsh:p10k: Reapply custom changes
I wanted to have them standalone in a commit once for better
transparency instead of reapplying them before committing the updated
theme in the last commit:
529c41abcf ("zsh:p10k: Reset to `p10k configure`")
2022-03-10 14:56:47 +01:00
529c41abcf zsh:p10k: Reset to p10k configure
Rerun the p10k configurator with the current version.
2022-03-10 14:56:24 +01:00
77b2d63341 zsh:autosuggestions: Use own fork for now
See https://github.com/zsh-users/zsh-autosuggestions/pull/621

Set experimental values to the new configuration options.
2021-07-22 15:48:36 +02:00
0dfff846c2 zsh:fzf-tab: Remove color preview symbol 2021-07-10 01:47:45 +02:00
e0ade3c140 zsh:fzf-tab: Set bindings for switching groups 2021-07-10 01:46:01 +02:00
f2c84fe82c vim:zsh-autosuggestions: Set suggestions strategy 2021-07-09 23:53:50 +02:00
5ab5a49793 zsh:stderred.theme: Use escape-sequences w/o tput 2021-06-01 22:36:59 +02:00
754adc9cf7 zsh:fzf-tab: Limit dir previews to a depth of 3
Otherwise this is way to performance heavy in large directories.
2021-02-17 02:56:08 +01:00
1cbf572d42 zsh:p10k: Recognize protonvpn as vpn 2021-01-15 12:41:09 +01:00
ebea6a8a80 zsh: Add WIP fzf-tab configuration adding previews 2020-12-28 03:11:20 +01:00
a440e8b61e zsh: Use dictionary for command existence check
Use the `commands` dictionary from zsh instead of always calling
`command`.

Regex used:
s/command -v \([^ ]*\) &>\/dev\/null/(( $+commands[\1] ))/g
2020-12-28 02:58:46 +01:00
914e8a1992 repo: Update submodules & cleanup gitmodules
Update all submodules to the newest commit.
Change submodule names in `.gitmodules` from local path to repo names.
Sort and group `.gitmodules` by program that uses it.
Remove the clone of 'fzf-tab' as my pull request got merged.
2020-12-22 16:22:33 +01:00
druckdev
af49c39ba3 zsh: Reorder zshrc components and move stuff
Put the external plugins to the end as well as z-sy-h to the end of the
plugins.
Put the last remaining lines in the zshrc in their own modules.
2020-11-15 01:16:00 +01:00