Coda 2 Lessons Learned

[ Coda 2 Lessons Learned ] 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.

Contents

Upload to specific directory

Question:

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.

Answer:

“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: https://itunes.apple.com/us/book/inside-coda/id903171871?mt=11

Publish without making changes

Question:

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.

Answer:

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

Question:

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..

Answer:

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

Question:

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.

Answer:

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

Question:

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.

Answer:

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

Question:

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.

Answer:

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

Question:

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.

Answer:

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

Question:

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.

Answer:

Hit ⌘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

Question:

Where can I find a list of Coda 2 keyboard shortcuts?

Answer:

Check out this post at WP-Mix: Coda 2 Shortcuts.

Thoughts about Coda 2

Question:

What are my thoughts about Coda 2?

Answer:

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.