I work a lot at the command line in a Terminal and would like to start a text editor on a certain file. I'm from Linux Land and normally use kwrite or gedit from a bash shell. Trying to find the Mac equivalent, as a guess, tried
Active8 months ago
and
and
and other variations. I can't seem to find the proper name of the text editor app. (No, vi isn't to my liking.) Oddly, the guy at an Apple store didn't know this.
I work a lot at the command line in a Terminal and would like to start a text editor on a certain file. I'm from Linux Land and normally use kwrite or gedit from a bash shell. Trying to find the Mac.
1,4731313 gold badges2929 silver badges4646 bronze badges
DarenWDarenW
1,70866 gold badges2121 silver badges2222 bronze badges
8 Answers
Here are some possible answers, all using the 'open' command-line utility.
The -a option means 'open the file argument with the named application':
open -a TextEdit file.txt
The -e option means 'open the file argument with the TextEdit application':
open -e file.txt
The -t option means 'open the file with the default application for editing text files, as determined via LaunchServices'. By default, this will be /Applications/TextEdit.app; however, it's possible for this setting to get overridden:
open -t file.txt
Finally, any file that's of the 'text' type will get opened by the application bound to the text type if you just say
open file.txt . You can use the 'file' command to reveal what the operating system thinks the file type is: file file.txt . So, for example, if you renamed 'file.txt' to just 'textfile' then open textfile would still open it in the default text-file editing application, as long as file textfile still thought that 'textfile' was actually a text file.
A short 'help' file on
open can be found by running
Or you can read the whole manual with
CousinCocaine
6,58299 gold badges3939 silver badges6666 bronze badges
Viktor HaagViktor Haag
1,37211 gold badge1010 silver badges1111 bronze badges
The default text editor is TextEdit. You can open a text file in there by using open -a:
If you want to use another app, just put it's name in, like this:
Nathan GreensteinNathan Greenstein
21.2k2121 gold badges8686 silver badges127127 bronze badges
There are two ways:
If your default text editor is TextEdit, you can simply use
![]()
to open it in TextEditor.
If your default text editor is not TextEdit, and you want to open it in TextEdit specifically, you can use
Either of those can be made an alias in your shell config file, of course.
mipadimipadi
1,99733 gold badges2222 silver badges2626 bronze badges
If you search for a comfortable way with more 'linux feel'add something like the following to your
~/.profile :
Text for mac android. or
depending on your editors.
MartinMartin
If you already started to write in terminal and you want to continue on your favorite editor you can press ctrl+X, ctrl+E and continue working in emacs or your default bash editor.
If you want to change the default editor, change the environment variable EDITOR to your favorite one:
Nov 13, 2018 I have just installed office 365 but I cannot find how to curve text in powerpoint, it seems to be missing,Help! This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread. How to curve text in powerpoint 2008 for mac. Dec 13, 2011 How do I curve the text in microsoft powerpoint for mac? Update: I mean curve the wordart. Rating Newest Oldest. There should be an option in wordart that would let you curve the text. Hanna 7 years ago. Report Abuse. Add a comment. Mac powerpoint for. If you want the text to follow a circular path – select the text, go to Format ->Size and make the height and width of the text box equal as shown here. This makes the text curve as follows: You can see another surprising cross stitch background effect for text here >> Step 2: Determine the extent of distribution. When you click on the PowerPoint text, you will see a pink diamond handle.
EDSanchaEDSancha
See if you have the vim editor, I didn't even realize my terminal could use it.
Try:
to figure out its controls.
You can edit files pretty well with it. The syntax looks something like:
user70580user70580
TextWrangler (now defunct and replaced with BBEdit) when installed with the
Command Line Utilities , allowed you to do:
to launch TextWrangler, which to me is nicer than
open -t README.txt , but maybe I'm just suffering from inertia.
FYI -
edit is a binary executable file (from the TextWrangler kit), not just an alias or symlink.
![]()
Sridhar SarnobatSridhar Sarnobat
Alex ChaliyAlex Chaliy
You must log in to answer this question.Not the answer you're looking for? Browse other questions tagged terminalcommand-linetext-editor .
EditPad Lite is a compact general-purpose text editor. Use EditPad Lite to easily edit any kind of plain text file. EditPad Lite has all the essential features to make text editing a breeze:
Text Edit For Mac
EditPad Lite is free for personal use. Business and government users can purchase a license.
Unix Text Editor For WindowsWhat People Say About EditPad Lite
These are just a few from a long list of unsolicited testimonials we have received from our users.
Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2020
Categories |