• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Keyboard shortcut to select a line of text

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Keyboard shortcut to select a line of text

    is this possible? I know ctrl-A selects eveything but is there a command that just selects the current line?

    #2
    Originally posted by gricerboy View Post
    is this possible? I know ctrl-A selects eveything but is there a command that just selects the current line?
    'yy' in vi, Unix Roolz, embrace the power of the vi-ster....

    Comment


      #3
      Originally posted by stek View Post
      'yy' in vi, Unix Roolz, embrace the power of the vi-ster....
      I dont even know what that means!

      Try Shift + End (or Shift + Home if you are at the end of a line).

      Comment


        #4
        Originally posted by stek View Post
        'yy' in vi, Unix Roolz, embrace the power of the vi-ster....
        In an X11 terminal session (aka xterm), press mouse button one (MB1) 3 times.

        Behold the warranty -- the bold print giveth and the fine print taketh away.

        Comment


          #5
          Originally posted by Sysman View Post
          In an X11 terminal session (aka xterm), press mouse button one (MB1) 3 times.

          but that also grabs the PS1 prompt

          Comment


            #6
            This won't solve your problem but its still worth having a look at:
            ClipboardFusion 2.0.0 Released!

            It works quietly in the background adding a bit of extra functionality to the clip board.
            Coffee's for closers

            Comment


              #7
              Home, followed by Shift + End.
              ‎"See, you think I give a tulip. Wrong. In fact, while you talk, I'm thinking; How can I give less of a tulip? That's why I look interested."

              Comment


                #8
                Shift + Down

                Comment


                  #9
                  Originally posted by PRC1964 View Post
                  Shift + Down
                  When at the beginning of the line to be selected.
                  Never has a man been heard to say on his death bed that he wishes he'd spent more time in the office.

                  Comment


                    #10
                    Originally posted by FiveTimes View Post
                    but that also grabs the PS1 prompt
                    True. A former colleague put a line feed into his prompt to get around that. Waste of screen real estate in my opinion.

                    But where it does come in useful is for copying commands out of documentation or a script.
                    Behold the warranty -- the bold print giveth and the fine print taketh away.

                    Comment

                    Working...
                    X