✨ Command to open
Closed this issue · 7 comments
Overview
Users need to be able to open files and folders from the command line in CodeEdit.
Folder
codeedit ./my-project
File
codeedit index.html
You should also be able to add an optional line and column
codeedit index.html:50
or
codeedit index.html:50:15
References
@austincondiff Can I get more info on this?
@b4s36t4 Updated the description.
@austincondiff is there already CLI for CodeEdit that can be installed via Homebrew or something?
@ahmdyasser Since we're still working on getting our first beta release ready, no, there isn't any homebrew formula available yet.
@lukepistrol How can I create accomplish this issue goal? Should I create the CodeEdit CLI myself?
@ahmdyasser you are more than welcome to do this. We already have a CLI, we just need to add these features. Some work has already been done to move the cursor to a specific location here:
This issue is very similar to...
this is already implemented:
# open the current working directory as a folder
codeedit-cli .
# open a specific file in single file mode
codeedit-cli index.html
# open a specific folder
codeedit-cli ~/Developer/example-project
# open a specific file at a specific line
codeedit-cli index.html -l 42
# open a specific file at a specific line and column
codeedit-cli index.html -l 42 -c 3