Sublime Text 2: SFTP browsing remote in sidebar - ftp

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

Related

Codeanywhere (IDE) - Unable to browse folders

I use CodeAnywhere as an IDE. It's been working great for me. All the sudden, I logged in and was unable to view any folders in any of my projects. All it shows is a blank HTML file. I'm at my wits' end and CodeAnywhere's support is utterly useless.
Any guidance would be appreciated.
CodeAnywhere Screen Shot
From your screenshot I can see that you're accessing via FTP all those servers/folders, is that correct?
Have you tried accessing these servers with other ftp tools, like filezilla? And if so, the files are still there?
I've had a similar problem while configuring a new FTP connection, where the Initial dir I entered was blocked to the Username I was using to connect, thus showing a blank connection. I recommend double checking the configuration you're using and also making sure the files you're trying to find are still there, with filezilla or another ftp tool.

Notepad++ cannot open deep nested files from the FTP

I am using nppFTP to connect to my development server. I can only open files that are 3-4 levels deep. It may be because the base directory name is really long (something like e778de749db7d41c5666a8ee2895475ea), and the complete path name is too long for Notepad++ to handle.
I can pull from git without a problem, FTP clients like FileZilla can also open the files.
Has anyone faced this problem?
Based on the feedback on the comments section, I would suggest you switch to a Git FTP deployment workflow. I use such a workflow myself and I love it.
To achiave it, you have to use one of several tools that exists for this, to name a few:
git-ftp (bash)
git-ftp (python)
PHPloy (php)
All those allow you to configure your FTP details and deploy based on git version comparison. Pick the one you like.
Disclaimer: I've build PHPloy.

Work online with textmate save files to server AND local to save them in SVN

I work directly on a remote (S)FTP Server some times. I use textmate as editor and Transmit 4 as FTP-Client.
My Problem is, I will work live on the server and if I save files to the server I will a local copy in a special folder to save the changes to SVN.
As long as I worked with Windows, I used Notepad++ with the FTP Plugin and could say "Save local and remote".
Has any body a idear how I can do it with mac, textate and transmit?
Assuming your are doing web development, revert the process:
make a local copy of what is on your remote server
edit locally with your preferred editor
test locally
publish your changes to the remote server either with FTP (meh) or SVN (better)

Notepad++ with Local and FTP synchronizer. [?]

Does the Notepad++ have Local and FTP synchronizer by any plugin?? because I develop websites using PHP and notepad++ has all the features I like and its really lightweight but I had to switch to Netbeans because I use a web hosting but I always like to save the code in my computer too. and netbeans can do that, even anything you insert locally in the folder it automatically adds the folder and the files in the FTP server which is great. but if the notepad++ has the feature to at least update the files that we are saving in notepad++ in both local and ftp server I would be so glad, I search that for a long time, but I can't use netbeans anymore I lose way too much time, netbeans is really heavy!
Thanks!
NppFTP: a plugin that allows FTP,
FTPS, FTPES and SFTP communications.
Very useful for web development.
Author: harrybharry
Homepage: http://sourceforge.net/projects/nppftp/
Install it from Plugin Manager
These are NppFTP plugin panel and toolbar button
Open profile settings dialog
Then configure profiles
Just wanted to post this here for anybody looking for the same solution I was looking for... (and I think helps answer this question more thoroughly).
I keep an exact replica of my public_html directory on my local machine. I wanted to be able to double click a file on the remote server and live edit so that I had a mirrored copy on my local machine. Note: if you are looking for functionality similar to Dreamweaver's site manager... there is a feature request for that. This solution only allows your local files to get updated when you edit a remote file.
So here goes the basic connection settings (pretty standard):
h: some.ftphost.com
u: some_ftp_user
p: a_very_secure_password
d: /public_html
Then, here is where the magic comes in. Under the "cache" tab for the ftp profile, add the following:
Local path: E:\Path\to\your\local\server\public_html
External path: /public_html
The external path should be the same as the "initial directory" in your connection settings. Hope this makes sense. Please ask questions if you have any.
Then what you need is rather FTP_synchronize
double-clicking file will open it for
editing and saving file (in usual way)
will update it on server .
I actually prefer the way that Notepad++ works with FTP compared to Netbeans. Notepad++ always treats the remote file as the master copy. So when you open it, it first downloads it and stores it in the local cache. Netbeans however always opens the local copy first - you have to explicitly synchronise with the external server to pull down the files from the server. If you're working with other developers - its much better to use the server copy so that you pull down any changes by other developers.
If you want the synchronisation try these steps:
In Notepad++ | NppFTP | Global Settings | Set the Global cache to be C:\inetpub\wwwroot\%USERNAME%#%HOSTNAME% which works for IIS or change the directory to your webserver root directory
You will have to make sure Notepad++ has permissions to create directories in your server root
Download one file from the server using NppFTP so that you can see what the directory struction looks like you can probably put just %HOSTNAME% e.g. C:\inetpub\wwwroot\domain.com
Then use Filezilla to download all the files into that directory - you can also use Filezilla to check for synchronisation changes.
Then use NppFTP which will download the files into that structure.
You should then be able to access the files through localhost/domain.com
If you're the only one working on the project that should then be enough, but if there are others, or if you make changes elsewhere you can use Filezilla to check the file timestamps to synchronise.
The default install for Notepad++ has a Plugin called NppFTP on the Plugins menu. I don't know how feature-full it is, however.
Get NppFTP
Connect to ftp.xxxx.com
Double click file to open
Edit changes
Save with automatic upload

Web Development Tools Question - Automatic File Upload

This should a quick question for some easy rep.
I'm doing some PHP Website development, decided to check out and play around with jQuery as well. I don't want to install and manage a local PHP server/service, but I would like a quick one click method for automatically uploading the PHP file I'm working on to my hosting service so I can test it live.
I'm looking into some different editors like Komodo Edit, Notepad++ but I'm wondering what tool has the ability to one click FTP for me?
Edit after a few posts came in:
Well Shoot, Ultra Edit costs around $100, and Aptana allows you to upload to their "Cloud", but you have to purchase the cloud space. I already have my own server. I'll have look into BlueFish a bit more....Thanks for the help guys.
I'm thinking I might try using Notepad++ and just write a batch file to run windows built in FTP, make a connection and copy all the files in a folder in auto-overwrite mode. Seem feasible?
I have a setup that I use FileZilla as the FTP, and NotePad++ as my text editor.
Within FileZilla, I set NotePad++ as the default text editor, and when I hit Ctrl-S within the file I am working on at that time, it automatically uploads those changes to the server.
You will be able to edit the preferences within FileZilla (http://filezilla-project.org) to set your default text editor, this is something you should be able to do with any FTP program.
Check out this post for more information: http://linhost.info/2008/01/notepad-and-filezilla-tip/
UEStudio has integrated (S)FTP, SVN, etc, plus the ability to open a file over FTP - of course, it actually just downloads to a temp file, but each time you press save, it uploads it to the server again.
I'm pretty much obliged to point out just now that you might want to reconsider your decision to avoid a local development environment. Using XAMPP, it's ridiculously easy to set up a local web server. There are a multitude of benefits to this, far too many to list, even.
The Aptana IDE can do one-click upload via FTP and also synchronize all files between your local environment and remote server (based on timestamps) with one click as well.
Bluefish can edit the file directly on the FTP server. I'm not sure if the Win32 version can do that though.
i use e-texteditor. It's some kind of textmate clone, only is better :P
I have used sublime text with sftp pluggin.
sublime3 and
sftp pluggin
You only need to config sftp file on root folder.
Works quite good.
Regards
Most advanced editors/IDE's like Zend Studio allow adding FTP servers and editing files directly. Once modified, pressing Ctrl+S would update the file on server.

Resources