Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs term mode: Selecting word by double-clicking with mouse

How do I get a url to be selected by double-clicking in Emacs term mode? For example, if I see stackoverflow.com in my terminal and I'd like to select it by double-clicking on it, it currently just selects either stackoverflow or com, but not stackoverflow.com

like image 248
Eric Avatar asked Nov 25 '25 12:11

Eric


1 Answers

  1. Double-click the dot (.) in stackoverflow.com to select all of that URL.

    Depending on the current mode, . might have symbol syntax and not word syntax.

    Double-clicking a word-constituent character selects the clicked word.
    Double-clicking a symbol-constituent character selects the clicked symbol.

    See the Elisp manual, node Syntax Class Table.

  2. You can also click mouse-3 on the last word to select (e.g. com), after double-clicking mouse-1 on the first word to select (e.g. stackoverflow).

    See the Emacs manual, node Mouse Commands.

like image 195
Drew Avatar answered Nov 28 '25 07:11

Drew