I use nano <file_name>
to open/edit files on terminal. However it's very hard to edit so is there a way to open terminal files in TextEdit?
EDIT:
open -a TextEdit <my_file_name>
and open -a TextEdit
both return this:
open: invalid option -- 'a'
Usage: open [OPTIONS] -- command
This utility help you to start a program on a new virtual terminal (VT).
Options:
-c, --console=NUM use the given VT number;
-e, --exec execute the command, without forking;
-f, --force force opening a VT without checking;
-l, --login make the command a login shell;
-u, --user figure out the owner of the current VT;
-s, --switch switch to the new VT;
-w, --wait wait for command to complete;
-v, --verbose print a message for each action;
-V, --version print program version and exit;
-h, --help output a brief help message.
open -e <my_file_name>
returns:
Couldn't get a file descriptor referring to the console
open -a TextEdit filename
Taken from: apple.stackexchange.com/questions/25844/…openvt
installed that perhaps is linked asopen
? What happens if you runwhich open
? By default on OSX it should point to/usr/bin/open
. What happens if you try/usr/bin/open -a TextEdit filename
?osx
but it is telling you aboutapt install
which sounds like some type of Debian/Ubuntu OS.