I recently switched over to Panic’s Coda 2 for code editing and SFTP functionality. After using my previous editor/FTP software for over 10 years, I was surprised that learning Coda 2 happened so easily. It literally took me like two days of using it before I was back up to full development speed.
In the process of learning, I discovered numerous questions and concerns that weren’t covered in the Coda 2 documentation or anywhere online.
This post rounds up these issues and provides solutions or answers for each of them. For experienced Coda users, most of this article may seem silly, but for those new to Coda, I think these lessons learned will help fill in a few blanks.
- Upload to specific directory
- Publish without making changes
- Display file lists and file being edited
- Difference between file lists
- Disable auto-created new blank file
- Remote file editing
- Question about screen layout
- Search selected text
- Where to find list of Coda 2 shortcuts
- Thoughts about Coda 2
Upload to specific directory
How do I upload any given file to its proper directory on the server? Currently it seems possible only to upload files to the root directory of the server. I need a quick, direct upload to the file’s directory. I.e., not referring to queuing/publishing.
“Publishing” is the only way to do this. Once you have a site set up, you can right click any file and choose “Publish” and it’ll upload to the correct place on your server, provided you have a 1:1 mirror of your server’s files locally and remotely. Choosing “Upload” will simply upload the file to the root directory open in the remote pane. More details about this in the Coda manual on page 108:
Publish without making changes
How do I publish any given file without making changes to it. For example, if I need to reset a log file on the server, so that it is overwritten by a blank file. How do I Publish without having to make any change to the file? Or if it is possible via direct upload, as in #1, above.
Right click on any file or folder and select “Mark for publishing”. Then visit the arrow tab to publish to the server. In some cases, right click will offer another option to publish to the same folder on the server. So either way right click on the file is how to get there, even when no changes have been made to the file/directory.
Display file lists and file being edited
Is there a way to set up the screen so that it displays the local files, remote files, and a file that I’m editing? Currently it looks like I am able only to display the local/remote files, or the file to edit, not both..
If you use the Files Sidebar, you can see either local or remote files while you’re editing. You can switch between local/remote at the bottom. (Click the home button on the sidebar to see all of the options).
Difference between file lists
What is the difference between the list of files that is displayed in the far left light grey sidebar and the list of local files displayed adjacent to the remote files? They seem redundant, but I suppose there is a purpose/difference.
They are redundant for all practical purposes. In some cases you would use the colored-background list of local files, and in others the white-background list of local files. It all depends on how you have the screen set up and what you are trying to do.
Disable auto-created new blank file
How do I tell Coda to not auto-create a blank file every time I open a site? Currently a new/blank PHP document is created every time, even if I have no use for it. Really frustrating this one.
It’s because of a weird OS X requirement. No way to disable in the current version of Coda 2. Hopefully in a future update.
Remote file editing
What exactly am I editing when I click on a remote file? Is the file copied to a cache somewhere or does it overwrite the local copy? From my tests it /looks/ like it doesn’t affect the local copy of the file, so there must be some sort of cache involved.. just want to make sure that if I do click and edit a remote file that for certain it won’t be modifying the original file.
When editing a remote file, Coda will copy the file to a cache locally. When you save, it’s auto-uploaded back to the place it was retrieved from. If you edit remotely, it will not edit/change the local copy of the file.
Question about screen layout
Is the following layout possible at all with Coda:
[ local files | remote files | file that I am editing ]
..this setup is possible with Dreamweaver, so it would be great to achieve the same fluid workflow with Coda. Order of items doesn’t matter, just need all three of those things open at the same time.
No. There is no way to view both local and remote files side-by-side. The Files sidebar will let you view one or the other, with the ability to switch between local/remote at the bottom.
Search selected text
How do I search and search/replace within selected text? I see how to search within a file and within a directory, etc., but there doesn’t seem to be any way to search just within a selected block of text.
⌘F to bring up the find/replace bar, then click the Magnifying glass to bring up the options. You’ll find what you’re looking for there.
List of Coda 2 shortcuts
Where can I find a list of Coda 2 keyboard shortcuts?
Check out this post at WP-Mix: Coda 2 Shortcuts.
Thoughts about Coda 2
What are my thoughts about Coda 2?
Well for one, it was surprising how quickly I was able to learn the ropes and integrate the new features and functionality into my development routine. Aside from the few mysteries that are covered in this post, I think that everything is mostly intuitive and straightforward to get into.
As for functionality, if you have been using any older software for code editing, FTP, syntax highlighting, etc., I think you will be delightfully surprised at how much more Coda 2 can do. It’s just packed with features, like customizable syntax highlight palettes, file visibility rules, scripts and plugins, terminal access, synchronizing, and much more. Really packed with useful stuff.
A couple of things that I feel could be improved are the documentation for some of the basics (a lot is assumed), like the issues covered above; and also the Panic support representative seemed annoyed about having to respond to my questions. Plus it took a long time to even get a response.
Bottom Line: having switched to Coda 2, I could not be happier, but Panic support leaves much to be desired.