Skip to content

[Bug]: zsh-plugin: Tab-completion falls back to hardcoded default #3888

Description

@bvolkmer

Bug Description

In the following part, the completion falls back to the zsh default of the tab completion. But if the user uses other plugins that modify the tab completion mapping, this will override/break it (probably similar issues for Enter).

zle expand-or-complete

Forge should better check the binding on setup (bindkey '^I') and then use that as a fallback instead of assuming the zsh-default.

Steps to Reproduce

  1. bindkey '^I' something-else
  2. eval "$(forge zsh plugin)"
  3. cd <TAB> executes expand-or-complete and not something-else

Expected Behavior

Forge should not replace predefined bindings with zsh-defaults

Actual Behavior

Forge uses zsh-defaults and potentially breaks other plugins without need.

Forge Version

2.13.21

Operating System & Version

archlinux

AI Provider

None

Model

No response

Installation Method

Other

Configuration

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions