Skip to content

feat: elvish Wrapper via cdd init elvish #47

Description

@hammadmajid

What problem are you trying to solve?

cdd init supports fish, bash, and zsh only. Elvish users cannot Jump: the binary prints a path but there is no Wrapper to change the caller's directory.

Proposed solution

Add elvish to cdd init, sourced from rc.elv:

eval (cdd init elvish | slurp)

The emitted script defines fn cdd {|@args| ...} in the user's namespace. It forwards pass-through subcommands with e:cdd, otherwise captures e:cdd pick $@args, checks the exit status, guards against an empty result, and runs builtin:cd.

Alternatives considered

  • None. Elvish has no way to change the caller's directory from a child process either, so a function is required.

Additional context

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

    enhancementNew feature or requestneeds-triageMaintainer needs to evaluate this issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions