Cloud-9: How to open a file in the c9-editor from c9-terminal

perelin picture perelin · Jan 19, 2015 · Viewed 22.2k times · Source

Is there a way to open a file not from the workspace tree view but from the c9-terminal tab?

Background: c9 doesn´t allow me to set the workspace path to / for a user who doesn´t have write access there. But I´d like have a look around and change files outside of the main project directory (virtual hosts, php ini, etc). Using the terminal I can roam around everywhere my user has read access.

Answer

Brady Dowling picture Brady Dowling · Jan 20, 2015

At the moment, the only way to open a file from the terminal is in vim or by using ls and then clicking on the file you'd like to open.

Edit: You can now open from the terminal by running npm install -g c9, restarting your workspace, then doing c9 file.ext or c9 open file.ext