Search code examples
cloud9-ide

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


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.


Solution

  • 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, then doing c9 file.ext or c9 open file.ext