Han Li

Results 76 comments of Han Li
trafficstars

`vfox use -p nodejs` 会在当前项目下生成`.tool-versions`文件, 会锁定版本的. 这个满足不了吗?

如果我没理解错的话, 我们可以进一步优化: 假设新命令为short(后期再说). `vfox short nvf nodejs ` -> $VFOX_HOME下生成记录. `vfox activate` -> 激活的时候, 顺便给他注入一个名字为nvf的函数. 里面就是你上面提到的写法. 打开shell之后, 就能直接使用nvf了. ```shell nvf use xx nvf i xx ```` 等等 这样就可以避免设置环境变量了. 是这个意思不?

> 听起来还是可以先从环境变量入手,因为要用一个标志来标志当前要使用的插件 不需要, `vfox short nvf nodejs`就已经指定了函数和插件的映射关系, 这个关系存本地就行啦. vfox里面现成的结构来处理这个逻辑, https://github.com/version-fox/vfox/blob/main/internal/env/record.go 但是可能需要你将他抽成公共的, 目前仅`.tool-versions`使用.

我个人是不涉及这个使用的, 也不太懂. 我简单浏览了一下, 是可以通过插件支持的. 如果你有兴趣可以参考[创建插件](https://vfox.lhan.me/zh-hans/plugins/create/howto.html)自己实现一个. 如果遇到什么问题,可以在这个issue里面反馈, 或者去[Discord](https://discord.com/invite/85c8ptYgb7)里找我交流.

Thank you for such detailed advice! Related #228. The current behavior is > if you have a .tool-version in your project (project/.tool-versions), that version will be used in the current...

> Is it possible to achieve this function by changing the code in the picture above? This change is a bit complicated, we just need to determine if `sdkCurrentPaths` is...

macos环境下没有复现出来. 另外你升级到最新版本0.3.4试试.

I don't know how to use Nix, but I'm not opposed to this, would you be interested in getting this done?

Allow right mouse button menu bar selection to switch versions.

感谢反馈! `vfox`使用的是[urfave/cli](https://github.com/urfave/cli)库, 这个是库的问题. 只能命令后面紧接着跟flag才能生效.