How to implement text editing features in terminal interface?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite












Sorry if the title is confusing but essentially what I want is to have standard text editor features like Command< to move to the beginning of the line or CommandShiftBackspace to erase a line. Is it possible to implement such stuff in the terminal interface? Preferably, I would not download a terminal emulator like iTerm etc..










share|improve this question



























    up vote
    4
    down vote

    favorite












    Sorry if the title is confusing but essentially what I want is to have standard text editor features like Command< to move to the beginning of the line or CommandShiftBackspace to erase a line. Is it possible to implement such stuff in the terminal interface? Preferably, I would not download a terminal emulator like iTerm etc..










    share|improve this question

























      up vote
      4
      down vote

      favorite









      up vote
      4
      down vote

      favorite











      Sorry if the title is confusing but essentially what I want is to have standard text editor features like Command< to move to the beginning of the line or CommandShiftBackspace to erase a line. Is it possible to implement such stuff in the terminal interface? Preferably, I would not download a terminal emulator like iTerm etc..










      share|improve this question















      Sorry if the title is confusing but essentially what I want is to have standard text editor features like Command< to move to the beginning of the line or CommandShiftBackspace to erase a line. Is it possible to implement such stuff in the terminal interface? Preferably, I would not download a terminal emulator like iTerm etc..







      macos terminal command-line






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 11 at 0:13









      bmike♦

      150k45266584




      150k45266584










      asked Aug 10 at 21:55









      Abby

      724




      724




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote













          There are ways to navigate in the terminal but they don't use the macOS keystrokes for navigation as the BASH shell actually predate macOS/NeXT. For example CtrlA moves to the beginning of a line and CtrlE moves the cursor to the end of a line. A quick search online on BASH shell keyboard shortcuts will yield a whole list like this, for example.



          As an alternative BBEdit is a text editor that has been around on the Mac for ever. Way Pre-OS X. And one of the features is a command line window that acts much like a text editor and uses the standard Mac keybindings. But then you'll have to buy a programmers text editor to get the features you want in a shell window.



          Might be best if you just learn the BASH keybindings, as that is lots cheaper ;-)






          share|improve this answer




















          • thanks for pointing me in the right direction as I actually had no idea that what I wanted was even easily available... but the more you know!! I will look into what you said
            – Abby
            Aug 10 at 22:18











          • Incidentally, quite a few of these key bindings will work in macOS text input fields as well.
            – duskwuff
            Aug 11 at 1:19






          • 1




            NeXT is older than bash. Most shells have these keystrokes. Also note that until OSX 10.3ish bash was not the shell it was csh. The keystrokes come from NeXT they are actually emacs keybindings
            – Mark
            Aug 11 at 11:04











          • @mark While NeXT may or may not have used emacs keybindings, the Mac itself has always used them. They didn't come from NeXT.
            – Marc Wilson
            Aug 11 at 15:58






          • 1




            @MarcWilson Early Classic Mac keyboard does not have a control key so can't have the emacs shortcuts en.wikipedia.org/wiki/Apple_Keyboard#/media/…
            – Mark
            Aug 11 at 19:11

















          up vote
          1
          down vote













          Apple has the complete (AFAIK) set of Terminal Keyboard shortcuts on their support website. It seems thay cover at least some of what you're looking for. THere's also an expanded set of topics relating to various aspects of terminal use that should be helpful.






          share|improve this answer




















          • It's not complete, a number of the emacs readline keybindings are lacking (c-p, c-n, c-t, c-y, …)
            – Kevin
            Aug 11 at 1:14






          • 1




            well, it's complete enough :p
            – Abby
            Aug 11 at 9:19










          Your Answer







          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "118"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f333382%2fhow-to-implement-text-editing-features-in-terminal-interface%23new-answer', 'question_page');

          );

          Post as a guest






























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          There are ways to navigate in the terminal but they don't use the macOS keystrokes for navigation as the BASH shell actually predate macOS/NeXT. For example CtrlA moves to the beginning of a line and CtrlE moves the cursor to the end of a line. A quick search online on BASH shell keyboard shortcuts will yield a whole list like this, for example.



          As an alternative BBEdit is a text editor that has been around on the Mac for ever. Way Pre-OS X. And one of the features is a command line window that acts much like a text editor and uses the standard Mac keybindings. But then you'll have to buy a programmers text editor to get the features you want in a shell window.



          Might be best if you just learn the BASH keybindings, as that is lots cheaper ;-)






          share|improve this answer




















          • thanks for pointing me in the right direction as I actually had no idea that what I wanted was even easily available... but the more you know!! I will look into what you said
            – Abby
            Aug 10 at 22:18











          • Incidentally, quite a few of these key bindings will work in macOS text input fields as well.
            – duskwuff
            Aug 11 at 1:19






          • 1




            NeXT is older than bash. Most shells have these keystrokes. Also note that until OSX 10.3ish bash was not the shell it was csh. The keystrokes come from NeXT they are actually emacs keybindings
            – Mark
            Aug 11 at 11:04











          • @mark While NeXT may or may not have used emacs keybindings, the Mac itself has always used them. They didn't come from NeXT.
            – Marc Wilson
            Aug 11 at 15:58






          • 1




            @MarcWilson Early Classic Mac keyboard does not have a control key so can't have the emacs shortcuts en.wikipedia.org/wiki/Apple_Keyboard#/media/…
            – Mark
            Aug 11 at 19:11














          up vote
          1
          down vote













          There are ways to navigate in the terminal but they don't use the macOS keystrokes for navigation as the BASH shell actually predate macOS/NeXT. For example CtrlA moves to the beginning of a line and CtrlE moves the cursor to the end of a line. A quick search online on BASH shell keyboard shortcuts will yield a whole list like this, for example.



          As an alternative BBEdit is a text editor that has been around on the Mac for ever. Way Pre-OS X. And one of the features is a command line window that acts much like a text editor and uses the standard Mac keybindings. But then you'll have to buy a programmers text editor to get the features you want in a shell window.



          Might be best if you just learn the BASH keybindings, as that is lots cheaper ;-)






          share|improve this answer




















          • thanks for pointing me in the right direction as I actually had no idea that what I wanted was even easily available... but the more you know!! I will look into what you said
            – Abby
            Aug 10 at 22:18











          • Incidentally, quite a few of these key bindings will work in macOS text input fields as well.
            – duskwuff
            Aug 11 at 1:19






          • 1




            NeXT is older than bash. Most shells have these keystrokes. Also note that until OSX 10.3ish bash was not the shell it was csh. The keystrokes come from NeXT they are actually emacs keybindings
            – Mark
            Aug 11 at 11:04











          • @mark While NeXT may or may not have used emacs keybindings, the Mac itself has always used them. They didn't come from NeXT.
            – Marc Wilson
            Aug 11 at 15:58






          • 1




            @MarcWilson Early Classic Mac keyboard does not have a control key so can't have the emacs shortcuts en.wikipedia.org/wiki/Apple_Keyboard#/media/…
            – Mark
            Aug 11 at 19:11












          up vote
          1
          down vote










          up vote
          1
          down vote









          There are ways to navigate in the terminal but they don't use the macOS keystrokes for navigation as the BASH shell actually predate macOS/NeXT. For example CtrlA moves to the beginning of a line and CtrlE moves the cursor to the end of a line. A quick search online on BASH shell keyboard shortcuts will yield a whole list like this, for example.



          As an alternative BBEdit is a text editor that has been around on the Mac for ever. Way Pre-OS X. And one of the features is a command line window that acts much like a text editor and uses the standard Mac keybindings. But then you'll have to buy a programmers text editor to get the features you want in a shell window.



          Might be best if you just learn the BASH keybindings, as that is lots cheaper ;-)






          share|improve this answer












          There are ways to navigate in the terminal but they don't use the macOS keystrokes for navigation as the BASH shell actually predate macOS/NeXT. For example CtrlA moves to the beginning of a line and CtrlE moves the cursor to the end of a line. A quick search online on BASH shell keyboard shortcuts will yield a whole list like this, for example.



          As an alternative BBEdit is a text editor that has been around on the Mac for ever. Way Pre-OS X. And one of the features is a command line window that acts much like a text editor and uses the standard Mac keybindings. But then you'll have to buy a programmers text editor to get the features you want in a shell window.



          Might be best if you just learn the BASH keybindings, as that is lots cheaper ;-)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 10 at 22:13









          Steve Chambers

          12.2k21234




          12.2k21234











          • thanks for pointing me in the right direction as I actually had no idea that what I wanted was even easily available... but the more you know!! I will look into what you said
            – Abby
            Aug 10 at 22:18











          • Incidentally, quite a few of these key bindings will work in macOS text input fields as well.
            – duskwuff
            Aug 11 at 1:19






          • 1




            NeXT is older than bash. Most shells have these keystrokes. Also note that until OSX 10.3ish bash was not the shell it was csh. The keystrokes come from NeXT they are actually emacs keybindings
            – Mark
            Aug 11 at 11:04











          • @mark While NeXT may or may not have used emacs keybindings, the Mac itself has always used them. They didn't come from NeXT.
            – Marc Wilson
            Aug 11 at 15:58






          • 1




            @MarcWilson Early Classic Mac keyboard does not have a control key so can't have the emacs shortcuts en.wikipedia.org/wiki/Apple_Keyboard#/media/…
            – Mark
            Aug 11 at 19:11
















          • thanks for pointing me in the right direction as I actually had no idea that what I wanted was even easily available... but the more you know!! I will look into what you said
            – Abby
            Aug 10 at 22:18











          • Incidentally, quite a few of these key bindings will work in macOS text input fields as well.
            – duskwuff
            Aug 11 at 1:19






          • 1




            NeXT is older than bash. Most shells have these keystrokes. Also note that until OSX 10.3ish bash was not the shell it was csh. The keystrokes come from NeXT they are actually emacs keybindings
            – Mark
            Aug 11 at 11:04











          • @mark While NeXT may or may not have used emacs keybindings, the Mac itself has always used them. They didn't come from NeXT.
            – Marc Wilson
            Aug 11 at 15:58






          • 1




            @MarcWilson Early Classic Mac keyboard does not have a control key so can't have the emacs shortcuts en.wikipedia.org/wiki/Apple_Keyboard#/media/…
            – Mark
            Aug 11 at 19:11















          thanks for pointing me in the right direction as I actually had no idea that what I wanted was even easily available... but the more you know!! I will look into what you said
          – Abby
          Aug 10 at 22:18





          thanks for pointing me in the right direction as I actually had no idea that what I wanted was even easily available... but the more you know!! I will look into what you said
          – Abby
          Aug 10 at 22:18













          Incidentally, quite a few of these key bindings will work in macOS text input fields as well.
          – duskwuff
          Aug 11 at 1:19




          Incidentally, quite a few of these key bindings will work in macOS text input fields as well.
          – duskwuff
          Aug 11 at 1:19




          1




          1




          NeXT is older than bash. Most shells have these keystrokes. Also note that until OSX 10.3ish bash was not the shell it was csh. The keystrokes come from NeXT they are actually emacs keybindings
          – Mark
          Aug 11 at 11:04





          NeXT is older than bash. Most shells have these keystrokes. Also note that until OSX 10.3ish bash was not the shell it was csh. The keystrokes come from NeXT they are actually emacs keybindings
          – Mark
          Aug 11 at 11:04













          @mark While NeXT may or may not have used emacs keybindings, the Mac itself has always used them. They didn't come from NeXT.
          – Marc Wilson
          Aug 11 at 15:58




          @mark While NeXT may or may not have used emacs keybindings, the Mac itself has always used them. They didn't come from NeXT.
          – Marc Wilson
          Aug 11 at 15:58




          1




          1




          @MarcWilson Early Classic Mac keyboard does not have a control key so can't have the emacs shortcuts en.wikipedia.org/wiki/Apple_Keyboard#/media/…
          – Mark
          Aug 11 at 19:11




          @MarcWilson Early Classic Mac keyboard does not have a control key so can't have the emacs shortcuts en.wikipedia.org/wiki/Apple_Keyboard#/media/…
          – Mark
          Aug 11 at 19:11












          up vote
          1
          down vote













          Apple has the complete (AFAIK) set of Terminal Keyboard shortcuts on their support website. It seems thay cover at least some of what you're looking for. THere's also an expanded set of topics relating to various aspects of terminal use that should be helpful.






          share|improve this answer




















          • It's not complete, a number of the emacs readline keybindings are lacking (c-p, c-n, c-t, c-y, …)
            – Kevin
            Aug 11 at 1:14






          • 1




            well, it's complete enough :p
            – Abby
            Aug 11 at 9:19














          up vote
          1
          down vote













          Apple has the complete (AFAIK) set of Terminal Keyboard shortcuts on their support website. It seems thay cover at least some of what you're looking for. THere's also an expanded set of topics relating to various aspects of terminal use that should be helpful.






          share|improve this answer




















          • It's not complete, a number of the emacs readline keybindings are lacking (c-p, c-n, c-t, c-y, …)
            – Kevin
            Aug 11 at 1:14






          • 1




            well, it's complete enough :p
            – Abby
            Aug 11 at 9:19












          up vote
          1
          down vote










          up vote
          1
          down vote









          Apple has the complete (AFAIK) set of Terminal Keyboard shortcuts on their support website. It seems thay cover at least some of what you're looking for. THere's also an expanded set of topics relating to various aspects of terminal use that should be helpful.






          share|improve this answer












          Apple has the complete (AFAIK) set of Terminal Keyboard shortcuts on their support website. It seems thay cover at least some of what you're looking for. THere's also an expanded set of topics relating to various aspects of terminal use that should be helpful.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Aug 10 at 22:19









          Seamus

          41527




          41527











          • It's not complete, a number of the emacs readline keybindings are lacking (c-p, c-n, c-t, c-y, …)
            – Kevin
            Aug 11 at 1:14






          • 1




            well, it's complete enough :p
            – Abby
            Aug 11 at 9:19
















          • It's not complete, a number of the emacs readline keybindings are lacking (c-p, c-n, c-t, c-y, …)
            – Kevin
            Aug 11 at 1:14






          • 1




            well, it's complete enough :p
            – Abby
            Aug 11 at 9:19















          It's not complete, a number of the emacs readline keybindings are lacking (c-p, c-n, c-t, c-y, …)
          – Kevin
          Aug 11 at 1:14




          It's not complete, a number of the emacs readline keybindings are lacking (c-p, c-n, c-t, c-y, …)
          – Kevin
          Aug 11 at 1:14




          1




          1




          well, it's complete enough :p
          – Abby
          Aug 11 at 9:19




          well, it's complete enough :p
          – Abby
          Aug 11 at 9:19

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fapple.stackexchange.com%2fquestions%2f333382%2fhow-to-implement-text-editing-features-in-terminal-interface%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay