zsh: Remove carapace

It was a nice experiment but carapace and fzf-tab simply do not work
together currently.

The main issue is double-backlashes whenever a file with spaces it
selected. This is a _huge_ issue since it simply does not allow
completing _any_ file with spaces and is extremely tedious.

Issue tracked here:

https://github.com/carapace-sh/carapace-bin/issues/2667
https://github.com/Aloxaf/fzf-tab/issues/503

There are smaller issues like `cd folder/` completion adding a space
after the word so you cannot complete further 'into' the directory, and
some other small problems.

All of that only even works with a 'empty query string' hack to get the
two working together in the first place:

https://github.com/carapace-sh/carapace-bin/issues/2819#issuecomment-3092307945%3E

Ultimately it just seems not worth it to me.
This commit is contained in:
Marty Oehme 2025-12-12 09:29:18 +01:00
parent 93a8adb02b
commit 4e06f2e23b
Signed by: Marty
GPG key ID: 4E535BC19C61886E
5 changed files with 0 additions and 35 deletions

View file

@ -1,3 +0,0 @@
# yaml-language-server: $schema=https://carapace.sh/schemas/command.json
name: cat
run: "[bat]"

View file

@ -28,8 +28,6 @@ alias ls='ls --color=auto'
eval "$(starship init bash)"
eval "$(zoxide init bash)"
export CARAPACE_BRIDGES='zsh,fish,bash,inshellisense' # optional
source <(carapace _carapace)
set -o vi
stty time 0

View file

@ -39,8 +39,6 @@ starship init nu | save -f ($nu.data-dir | path join "vendor/autoload/starship.n
atuin init nu | save -f ($nu.data-dir | path join "vendor/autoload/atuin.nu")
# load zoxide bookmarks
zoxide init nushell | save -f ($nu.data-dir | path join "vendor/autoload/zoxide.nu")
# load carapace completions
source ~/.cache/carapace/init.nu
# keybinds
$env.config.keybindings = [

View file

@ -1,23 +0,0 @@
# env.nu
#
# Installed by:
# version = "0.102.0"
#
# Previously, environment variables were typically configured in `env.nu`.
# In general, most configuration can and should be performed in `config.nu`
# or one of the autoload directories.
#
# This file is generated for backwards compatibility for now.
# It is loaded before config.nu and login.nu
#
# See https://www.nushell.sh/book/configuration.html
#
# Also see `help config env` for more options.
#
# You can remove these comments if you want or leave
# them for future reference.
## create carapace completions
$env.CARAPACE_BRIDGES = 'zsh,fish,bash,inshellisense' # optional
mkdir ~/.cache/carapace
carapace _carapace nushell | save --force ~/.cache/carapace/init.nu

View file

@ -140,11 +140,6 @@ TRANSIENT_PROMPT_RPROMPT='$(starship prompt --right --terminal-width="$COLUMNS"
TRANSIENT_PROMPT_TRANSIENT_PROMPT='$(starship module character)'
eval "$(zoxide init zsh)"
eval "$(atuin init zsh)"
export CARAPACE_BRIDGES='zsh,fish,bash,inshellisense' # optional
source <(carapace _carapace)
# make fzf-tab compatible with carapace
# see <https://github.com/carapace-sh/carapace-bin/issues/2819#issuecomment-3092307945>
zstyle ':fzf-tab:*' query-string ''
# Speed up autocomplete, force prefix mapping
zstyle ':completion:*' accept-exact '*(N)'