Sublime Text 2:在边栏中的远程SFTP浏览 [英] Sublime Text 2: SFTP browsing remote in sidebar

查看:414
本文介绍了Sublime Text 2:在边栏中的远程SFTP浏览的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图切换到将Sublime Text 2的 SFTP包用作我的默认FTP客户端,因为它在工作流程改进方面看起来很有前途 - 比使用第三方FTP客户端要快得多。



我试图浏览远程服务器,就像我只有两种选择:将整个远程位置同步到本地文件夹,或者通过SFTP / FTP>浏览服务器菜单项浏览它,其中会显示这些文件浏览栏。我的情况涉及到一个很大的远程位置(不方便下载所有内容),我想编辑那些文件很分散的文件(不便于用该文件浏览栏导航)。



我试图实现的目标是能够浏览侧栏中的服务器,例如浏览本地文件夹时发生的行为,但实际上并不需要下载远程位置上的每个文件。只是目录列表应该有足够的信息来实现这一点。然后,试图从边栏中打开一个尚未下载的文件时,它可以继续并下载该特定文件。



这是某种选择我还没有发现?我在哪里可以配置此行为?什么是您的FTP工作流程,当涉及到在大型远程位置上编辑多个文件? 使用 SSHFS 然后用ST2编辑。



SSHFS:


这是基于SSH文件传输协议的文件系统客户端。由于大多数SSH服务器已经支持这个协议,所以它很容易设置:即在服务器端没有任何事情要做。在客户端,挂载文件系统就像使用ssh登录到服务器一样简单。


示例:

  sshfs user@host.com:/ server / path / local / path 


$ b

然后

  subl / local / path 


I'm trying to switch to using the SFTP package for Sublime Text 2 as my default FTP client, as it looks rather promising with regards to workflow improvement -- much faster than using a 3rd party FTP client.

I was trying to browse a remote server, and it seems like I only have two options: either sync the entire remote location to a local folder, or browse it via the SFTP/FTP > Browse Server menu item, which brings up one of those file browsing bars. My situation concerns a large remote location (inconvenient to download everything) on which I would like to edit files that are quite spread-out (inconvenient to navigate with that file browsing bar).

What I'm trying to achieve is to be able to browse the server in the side-bar, like the behaviour that occurs when browsing a local folder, but without actually having to download every single file on the remote location. Just the directory listing should be sufficient information to achieve this. Then, upon trying to open a file from the sidebar that hasn't been downloaded yet, it could go ahead and download that specific file.

Is this some sort of option I have not yet discovered? Where can I configure this behaviour? What is your FTP workflow when it comes to editing multiple files on a large remote location?

解决方案

Mount the remote directory using SSHFS and then edit with ST2, there.

SSHFS:

This is a filesystem client based on the SSH File Transfer Protocol. Since most SSH servers already support this protocol it is very easy to set up: i.e. on the server side there's nothing to do. On the client side mounting the filesystem is as easy as logging into the server with ssh.

Example:

sshfs user@host.com:/server/path /local/path

then

subl /local/path

这篇关于Sublime Text 2:在边栏中的远程SFTP浏览的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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