问题描述
我正在使用Sublime Text 2.0.1,不幸的是,使其与通过sshfs分发的文件一起使用是一件很痛苦的事-切换到其他选项卡,然后返回,可以对Sublime检查是否未更改文件.
I am using Sublime Text 2.0.1, and unfortunately making it work with files distributed over sshfs is a pain - switch to other tab and go back makes Sublime checking if file has not been changed.
是否有任何Sublime首选项或sshfs挂载选项可以使我在远程资源上的工作成为可能?
Are there any Sublime preferences or maybe sshfs mount options which can make my work over remote resources possible?
目前,我正在使用以下sshfs选项(更快的加密):
For now I am using following sshfs option (faster encryption):
-o Ciphers=arcfour
推荐答案
与Sublime Text相比,这确实是SSHFS和基于FUSE的文件系统的更多问题.
This is really more of a problem with SSHFS and FUSE-based file systems than Sublime Text.
如果您想要更强大,更易于使用的东西,可以尝试我一直在努力的东西'xeno'( https://xeno.io ).同样,我在SSHFS方面也遇到了问题(与伪劣的连接有关,而不是缓慢的编辑器性能),因此我将Git/SSH mashup组合在一起,以替代SSHFS.它将允许您通过SSH连接在Sublime Text(或实际上是任何本地编辑器)中打开文件/文件夹,并自动将更改同步到远程计算机.您甚至可以从内部 SSH连接启动本地编辑器,并让它在退出SSH会话后继续将更改同步到远程.它可以在几乎所有POSIX系统上运行(我本人在OS X上使用它来连接到Linux计算机并在Sublime Text中编辑文件).
If you want something a bit more robust and easy to use, you can try something that I've been working on called 'xeno' (https://xeno.io). I was similarly having problems with SSHFS (more to do with a shoddy connection than sluggish editor performance), so I put together this Git/SSH mashup as a replacement for SSHFS. It will allow you to open up files/folders in Sublime Text (or any local editor really) over an SSH connection, and automatically synchronize changes to the remote machine. You can even start your local editor from inside an SSH connection and have it continue to synchronize changes to the remote after you quit the SSH session. It should work on almost all POSIX systems (I myself use it from OS X to connect to Linux machines and edit files in Sublime Text).
它的作用是为您要在远程计算机上编辑的文件生成一个工作外Git存储库,然后在本地对其进行克隆,并使用SSH上的Git作为传输/同步机制.这不会干扰任何现有的源控件,也不需要您使用任何现有的源控件.而且由于它基于Git构建,因此速度极快,并且支持自动合并可能在两端更改的文件,这与SSHFS/rmate/rsub不同,SSHFS/rmate/rsub只会破坏任何带有旧时间戳的文件.
What it does is generate an out-of-worktree Git repository of the files you want to edit on the remote machine, and then clones it locally and uses Git over SSH as a transport/synchronization mechanism. This does not interfere with any existing source control, and it also does not require you to use any existing source control. And because it's built on Git, it's extremely fast and supports automatic merging of files that might be changing on both ends, unlike SSHFS/rmate/rsub which will just clobber any files with older timestamps.
它也是免费和开源的:),我真的很喜欢一些反馈.
It's also free and open source :), and I'd really love some feedback.
这篇关于Sublime Text 2在sshfs上工作缓慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!