Sublime Text 2 is sluggish during work over sshfs

落花浮王杯 提交于 2019-12-20 10:01:01

问题


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.

Are there any Sublime preferences or maybe sshfs mount options which can make my work over remote resources possible?

For now I am using following sshfs option (faster encryption):

-o Ciphers=arcfour

回答1:


This is really more of a problem with SSHFS and FUSE-based file systems than 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).

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.




回答2:


As @havoc-io said, this is mainly a problem of how ST2 listens to file system modifications. sshfs is simply too slow to handle the requests.

I'd recommend you to use a plugin like Sublime SFTP.




回答3:


This:

{
    "index_files": false
}

in the settings of sublime helped me.



来源:https://stackoverflow.com/questions/12528182/sublime-text-2-is-sluggish-during-work-over-sshfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!