删除bufferscroll插件后如何在Sublime Text中保存折叠/折叠的代码 [英] How to save collapsed / folded code in Sublime Text after removal of bufferscroll plugin

查看:33
本文介绍了删除bufferscroll插件后如何在Sublime Text中保存折叠/折叠的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

既然 BufferScroll 插件已被删除?

Is there a way to save/sync collapsed code from session to session in Sublime Text 3, now that the BufferScroll plugin has been removed?

推荐答案

这是背景故事(我找不到链接,作者可能已经删除了它,所以我在解释).基本上,Package Control 的作者要求,而不是使用日期作为版本号(例如 2016.03.18.06.34.41 用于最新版本的 BufferScroll),包作者应该使用 语义版本控制 类似于 Github 建议的方式.titoBouzout,他不仅是 BufferScroll 的作者,也是许多其他非常 流行软件包的作者例如 SideBarEnhancementsTagSideBarGit 尝试将他的样式转换为类似 的样式v2016.03.18,但显然 Github 认为版本号太高了.或者其他的东西.我希望我有原始的解释.

Here's the background story (I can't find the link, the author might have deleted it, so I'm paraphrasing). Basically, the author of Package Control requested that, instead of using dates as version numbers (such as 2016.03.18.06.34.41 for the most recent version of BufferScroll), package authors should use semantic versioning similar to how Github suggests. titoBouzout, who is not only the author of BufferScroll, but of many other very popular packages such as SideBarEnhancements, Tag, and SideBarGit, tried converting his style to something like v2016.03.18, but apparently Github thought the version number was too high. Or something. I wish I had the original explanation.

无论如何,他无法做到这一点,当被告知/告诉他将不得不转向几乎所有其他软件的版本控制方案时,他感到非常沮丧(礼貌地说)在包控制使用.相反,他决定带球回家.他保留自己的版本控制方案,并在 Github 上保留他的包,但它们将不再位于包控制中.

At any rate, he was unable to do that, and got all upset (to put it politely) when informed/told that he would have to move to a versioning scheme that nearly all other software on Package Control uses. Instead, he decided to take his ball and go home. He's keeping his own versioning scheme, and keeping his packages available on Github, but they won't be on Package Control any more.

用户必须手动打开命令面板,选择 Package Control: Add Repository,然后输入存储库的 Github URL,例如 https://github.com/titoBouzout/BufferScroll(确保末尾没有 .git).他们需要为他们想要使用的每个titoBouzout 包执行此操作.这种方法比直接git clone进入Packages目录的优势在于,更新会自动推送,就像包控制包一样.

Users will manually have to open the Command Palette, select Package Control: Add Repository, then enter the Github URL to the repo, such as https://github.com/titoBouzout/BufferScroll (make sure there's no .git on the end). They will need to do this for each and every titoBouzout package they want to use. The advantage of this method over directly git cloneing into the Packages directory is that updates are pushed automatically, just like with Package Control packages.

编辑 幸运的是,即使所有问题都已从 SideBarEnhancements 中删除,我仍然拥有 相关问题(谷歌缓存删除前的页面)在我的工作笔记本电脑上打开.以下是作者的解释:

EDIT Fortunately, even though all issues have been deleted from SideBarEnhancements, I still had the relevant issue (Google cache of page before deletion) open on my work laptop. Here is the author's explanation:

是的,我在将新包添加到存储库时遇到了问题,因为有一个新"(有一段时间)需要维护版本号,而我不想维护版本号,因为对我来说是一个日期已经足够了.我试图通过添加一些没有任何意义的东西来自动化版本号,只是一个日期,但这破坏了完整的存储库,因为大量".所以因为这个分歧,我从那里删除了我所有的包.规则改变了,所以我不再有兴趣通过该渠道分发我的包裹.但是,您可以决定通过添加存储库"选项手动添加此包,这可能会或可能不会起作用,我不知道要工作的要求,正如我所说,我不感兴趣.

Yes, I had problems to add new packages to the repository because there's a "new"(has some time there) requirement to maintain a version number, and I don't want to maintain versions numbers, because to me a date is enough already. I attempted to automate the version number by adding something without any meaning, just a date, but that broke the complete repository because "large number". So because of this disagreement, I removed all my packages from there. Rules changed, so Im no longer interested to distribute my packages via that channel. However you may decide to add this package manually via the option "Add Repository", this may or may not work, Im not uptodate with the requirements of that to work, and as I say, Im not interested.

更新

所以,看起来作者屈服于压力,或者改变了主意,或者其他什么,但所有他的包现在可以通过包控制再次使用,至少现在是这样.

So, it appears the author has caved to pressure, or changed his mind, or something, but all his packages are now available again via Package Control, at least for now.

这篇关于删除bufferscroll插件后如何在Sublime Text中保存折叠/折叠的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆