zdharma-continuum / zinit

🌻 Flexible and fast ZSH plugin manager
MIT License
2.95k stars 126 forks source link

fix: absolute path support in the symbol browser #416

Closed psprint closed 1 year ago

psprint commented 1 year ago

Description

Currently the absolute path from TAGS will be prepended by the wrapping git repository path, yielding something like /home/q/cmds//home/q/.local/share/zinit/plugins/zservices---command-server/libexec/cmd-cat which will not work

Motivation and Context

To open files found via the tag menu, prepending with a PWD/git-repo path only when needed.

Related Issue(s)

Usage examples

How Has This Been Tested?

Types of changes

Checklist:

psprint commented 1 year ago

@vladdoster I've also optimized the menu in new commit.

psprint commented 1 year ago

PS. Also a new feature – sort toggling via alt-s.

psprint commented 1 year ago

@vladdoster Could this fix be merged? I've updated the commit message to pass linter (added 'fix: …' prefix).

psprint commented 1 year ago

@vladdoster This commit is important because it fixes annoying bug in the browser. I've just fixed commit message.