logo
35
145
WeChat Login

希望路径兼容ohmyzsh的git-open插件#450

Resolved
created 2025-03-12
Edit

这个特性将解决什么问题?

我在使用ohmyzsh的时候,git-open插件是开发常用的插件之一。
该插件的官方地址是:https://github.com/paulirish/git-open
现在使用这个插件,针对gitlab,github都没问题,但是无法正常打开cnb的仓库。
原因:

# git-open 打开路径
https://cnb.cool/eryajf/busuanzi/tree/main

# cnb 实际路径
https://cnb.cool/eryajf/busuanzi/-/tree/main

可见是多了一个 -,目前不知道为什么要多这个,但是因为多了这个,导致这个插件无法正常使用。

设想的解决方案?如有

No response

您考虑过哪些替代方案?如有

No response

added labels
仅讨论
叕一极小细节
Developer

这个可以给 git-open 项目提个issue,我看他们的很多代码仓库都是后来提 pr 支持的,回头我们也提个 pr 支持下 cnb,或者先弄一份放到 cnb 上
07b1bd7b-fedf-42bb-a0fd-22528dc8daef.png

Developer

PR已经提了
https://github.com/paulirish/git-open/pull/217

等不及合并的话,可以根据这个 pr 改一下本地的 git-open 脚本。 @eryajf

cnb还缺个点赞功能,哈哈
那我就手动👍

Assignee
(阿秋)
Label
仅讨论
叕一极小细节
Priority
None yet
Time period
-
Property
Add custom properties to record and label key information
Participant