Bug 100317 - Selecting text w/o mouse (mimic screen)
Summary: Selecting text w/o mouse (mimic screen)
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: copy-paste (show other bugs)
Version: 1.4.2
Platform: Debian testing Linux
: HI wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 67255 69014 117083 149854 335338 446348 462105 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-02-26 17:56 UTC by Thiago F. G. Albuquerque
Modified: 2022-12-02 01:04 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thiago F. G. Albuquerque 2005-02-26 17:56:51 UTC
Version:           1.4.2 (using KDE KDE 3.2.3)
Installed from:    Debian testing/unstable Packages
OS:                Linux

I'd like to have something like screen's "copy 
mode" in konsole.

What is this?

You press some key, then you "enter" copy mode. You can move around the scrollback buffer as if it was a file in kedit. You can:

* move with the arrows, ^arrows, home, end, ^home, ^end
* search forward / backward / search again like you do in less (/, ?, n, N)
* select with shift + arrows, etc.
* copy with ^Ins / ^C.

When you copy, you leave copy mode, and are taken back to the command prompt, where you can paste with shift + Ins.
Comment 1 Kurt Hindenburg 2005-03-13 00:12:11 UTC
I seriously doubt this will every happen... 
Comment 2 Thiago F. G. Albuquerque 2005-03-13 02:57:58 UTC
On Sat, 12 Mar 2005, Kurt V.Hindenburg wrote:

> ------- Additional Comments From kurt.hindenburg kdemail net  2005-03-13 00:12 -------
> I seriously doubt this will every happen...


Why?
Comment 3 sas 2005-11-26 07:02:31 UTC
I posted the same wich-list (I've just found it this bus after sendign mine, sorry)

It would be a great enhancement

So I share Thiago's curiosity and also ask... Why???

Saludos

Sas
Comment 4 Thiago Macieira 2005-11-26 16:44:48 UTC
*** Bug 117083 has been marked as a duplicate of this bug. ***
Comment 5 Rocco Lord 2006-02-23 22:16:45 UTC
*** This bug has been confirmed by popular vote. ***
Comment 6 robert lindgren 2006-02-24 08:43:46 UTC
This is appearantly available in mac OSX (Tiger) Terminal.app and users are happy with it, so please add something like this in Konsole also.

http://www.macosxhints.com/article.php?story=20060115014737999
Comment 7 sas 2006-02-28 23:18:16 UTC
Well, besides insisting on the necessity of this enhancement, I'd like to point that, as a general design guideline, every kde app should seriously take into account the possibility of operating it with no mouse at all. 

All of us know that, once you get used to it, using the keyboard is a lot faster than the mouse.

Saludos, and let's hope the devs (which we are always tossing around) have mercy on us ;-)

Saludos

Sas
Comment 8 Kurt Hindenburg 2006-07-12 19:51:12 UTC
Link from #6:
You can now define the Mac-side text selection (the one you might normally create by clicking and dragging the mouse) using the keyboard in Terminal. Here's how:

   1. Choose the menu item Edit: Keyboard selection: Start keyboard selection, or just press Command-Option-Return. This command 'unhooks' the arrow keys from input; pressing them in this mode will not send arrow-key characters to the process running in the terminal.
   2. Use the arrow keys to navigate to the point where you want to start the selection.
   3. Choose the menu item Edit: Keyboard selection: Anchor selection at cursor, or press Command-Option-Return again. You have now set the start-point for the selection.
   4. Use the arrow keys to navigate to the point where you want to end the selection. You'll see the highlight appear as you move about; note that it is not a rectangular selection.
   5. Do what you wish with the selection. You can copy it manually via Command-C, drag the snippet with the mouse, cancel out of text selection mode by hitting Escape, or (easiest of all) just hit Command-Option_Return one more time. When you do, the selected text will be copied to the clipboard, the selection will vanish, the cursor will be back in its original location, and the arrow keys will be back to normal.
Comment 9 Robert Knight 2007-06-02 16:47:01 UTC
*** Bug 69014 has been marked as a duplicate of this bug. ***
Comment 10 Robert Knight 2007-06-02 17:28:26 UTC
*** Bug 67255 has been marked as a duplicate of this bug. ***
Comment 11 Robert Knight 2007-09-14 19:11:59 UTC
*** Bug 149854 has been marked as a duplicate of this bug. ***
Comment 12 Tommi Tervo 2009-11-19 19:40:03 UTC
*** Bug 199990 has been marked as a duplicate of this bug. ***
Comment 13 bendj 2010-01-10 21:16:40 UTC
(In reply to comment #12)
> *** Bug 199990 has been marked as a duplicate of this bug. ***

This bug, 199990, was specifically for "select all".  Doesn't seem like the same issue.  In any case, since it *has* been re-assigned here as a dup, GNOME Terminal has exactly this feature already implemented.

The original request, rationale, and commit are available for reference here:

 https://bugzilla.gnome.org/show_bug.cgi?id=86119

Would be appreciated to have the equivalent capability -- as in GNOME, and as in OSX, as mentioned above -- in the KDE Konsole.
Comment 14 Dotan Cohen 2010-01-12 13:41:28 UTC
The Windows cpl also lets the user copy all the text, though it is done from a right-click on the windows chrome as opposed to a real menu item. Only Konsole does not let one do this.
Comment 15 bendj 2010-03-17 20:05:36 UTC
Anyone @ KDE on this?  A pain to have to use GNOME terminal ...
Comment 16 Robert Knight 2010-03-18 14:57:58 UTC
Not that I know of.  Patch submissions to reviewboard.kde.org welcome.
Comment 17 kolAflash 2015-02-01 16:08:21 UTC
Looks like Microsoft finally decided to improve their console "cmd.exe" (after a lot of painful years).

https://www.youtube.com/watch?v=NfveyXCsiA8&t=27m17s

Nevertheless, it would be great if Konsole is still better than cmd.exe in every aspect ;-)

I think text selection using the keyboard and also text selection by word (e.g. pressing ctrl-shift in KWrite) would be quite useful features for Konsole.
Currently there's just the possibility to assign a shortcut for "Select all". (e.g. ctrl-a).

We just need to find out what to shortcut to use (shift-up/down currently scrolls the shell). But at least the user should be able to assign a shortcut via "Settings => Configure Shortcuts".
Comment 18 kolAflash 2015-02-01 16:35:58 UTC
Btw.:
It would be great to be able to freely move the cursor to a random position before starting to select. Like visual mode in Vim, Screen or Tmux. Maybe Konsole should have something like a visual mode for doing stuff like this. Nevertheless, ctrl-shift-c and ctrl-shift-v should be still working without switching mode, so you can directly copy after selecting using the mouse.
Comment 19 Jerôme Pouiller 2019-10-24 08:16:06 UTC
*** Bug 335338 has been marked as a duplicate of this bug. ***
Comment 20 Bug Janitor Service 2022-09-17 10:29:59 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/konsole/-/merge_requests/739
Comment 21 tcanabrava 2022-10-03 11:02:54 UTC
Git commit f26f71db013a5440560fd3be3fa4cf249f1fb8dd by Tomaz  Canabrava, on behalf of Matan Ziv-Av.
Committed on 03/10/2022 at 10:46.
Pushed by tcanabrava into branch 'master'.

Add keyboard selection mode

Similar to screen copy/scrollback mode it allows browsing the scrollback
and selecting text.

Selection is done either by standard GUI shift+arrows, or `vi` style with
`v` starting/ending selection.

M  +25   -2    doc/manual/index.docbook
M  +117  -0    src/Screen.cpp
M  +16   -1    src/Screen.h
M  +5    -4    src/SearchHistoryTask.cpp
M  +10   -4    src/Vt102Emulation.cpp
M  +11   -0    src/session/Session.cpp
M  +5    -0    src/session/Session.h
M  +20   -2    src/session/SessionController.cpp
M  +1    -0    src/session/SessionController.h
M  +175  -0    src/terminalDisplay/TerminalDisplay.cpp
M  +14   -0    src/terminalDisplay/TerminalDisplay.h

https://invent.kde.org/utilities/konsole/commit/f26f71db013a5440560fd3be3fa4cf249f1fb8dd
Comment 22 ninjalj 2022-11-23 23:14:58 UTC
*** Bug 462105 has been marked as a duplicate of this bug. ***
Comment 23 ninjalj 2022-12-02 01:04:04 UTC
*** Bug 446348 has been marked as a duplicate of this bug. ***