Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md for custom_path setting. #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update README.md for custom_path setting. #7

wants to merge 1 commit into from

Conversation

18601673727
Copy link

This takes me one hour for debugging the sublime-tmpl.py so I think maybe someone could need this help.

This takes me one hour for debugging the sublime-tmpl.py so I think maybe someone could need this help.
@kairyou
Copy link
Owner

kairyou commented Jun 12, 2014

Hello, 谢谢你的commit. 不过custom_path已经被移除了, 当初加上custom_path是为了防止插件升级后, 会把插件目录的.tmpl覆盖或删除.
现在为了照顾老用户, 初始化时会把custom_path目录的自定义模版转移到Packages/User/SublimeTmpl/templates内.

@18601673727
Copy link
Author

@kairyou
Hi, 非常感谢你的回复,不知为何要删除这个功能?
如果需要偶尔切换团队,而每个团队有不同的模板要求时怎么办呢?

@kairyou
Copy link
Owner

kairyou commented Jun 16, 2014

Hi, 删除custom_path的原因:

  1. 已经解决了插件自动升级后, 以前用户添加到插件目录的.tmpl会被删掉(package control升级会把原文件夹整个删掉);
  2. 是希望用户都把自己的自定义tmpl都统一到User/SublimeTmpl/templates内, 要相对好维护一些, 比如移动sublime文件夹, 也不会受到影响.
    至于切换团队的问题, 我想问下, 在你们切换一些配置时, 只有这个插件才需要切换吗? 有没有其他的插件也需要修改config? 因为我觉得切换团队, 再去修改某些插件的config不是太好的方案.
    你们有没有考虑, 比如写一个脚本来完成切换这些改变, 或者独立出两个sublime来区分呢?

@18601673727
Copy link
Author

Hi,
现在的User/SublimeTmpl/templates里面是这样的:
image

有什么办法可以自定义模板文件名为[项目名]_php.tmpl吗?如果可以,那么这个文件夹确实是不需要了。
关于config的方案,我建议是做到[项目名].sublime-project这一层上去,是最方便了:)

@yicijohncy
Copy link

请问一下version怎么设置自定义

@kairyou
Copy link
Owner

kairyou commented Dec 28, 2016

@yicijohncy version 应该是有些工具在commit时, 自动生成并写入文件的.
抱歉, 这样的工具我没用过, version那行一般我直接删掉, 由git来控制, 单个文件加version基本没什么意义.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants