|
Documentation
# Quick overview of how to use the scp-for-komodo-ide extension. IntroductionThis extension is a quick and dirty implementation that I built for my own use. While I love the Komodo IDE, I have been frustrated since the beginning that it doesn't have built-in SCP and mapping from local to remote servers and paths. In my mind, projects should very easily map from a local path to a remote server/path quite simply -- so this extension assumes a very simple mapping such as the following.
In this case, the SCP command for any file in the local path should look something like `scp local-path/file user@example.com:remote-path/file. As long as the local-path, remote-path, remote-server and SCP username are defined somewhere in the Komodo project, it is simple to map an open file in the IDE and shell out to the SCP command. That's all scp-for-komodo-ide does. DetailsImplementationSince my goal was to create an integrated SCP for Komodo projects (not to create a compelling user experience), I took the low road on configuration. I manually add the configuration options to the project file directly. To do this, simply open your project.kpf file in your favorite text editor and add the following lines inside the preference-set element: <string id="scp_local_path_prefix">/Users/blake/MyProject</string> <string id="scp_remote_path_prefix">/var/www/html/MyProject</string> <string id="scp_remote_server">example.com</string> <string id="scp_user">remote_user</string> If any of the above settings is not available, an error message will be issued. Usage within the IDEOnce the extension is installed, a new menu item will appear under the Komodo File menu. It is simply called SCP. A key mapping can be configured in the Komodo preferences if desired. NotesThis extension uses SCP without providing a password as described in http://www.linuxjournal.com/article/8600. |