bugGNU Octave - Bugs: bug #45003, Make command line mouse compatible

 
 

bug #45003: Make command line mouse compatible

Submitter:  None
Submitted:  Sun 03 May 2015 01:34:59 PM UTC
   
 
Category:  GUI Severity:  2 - Minor
Priority:  3 - Low Item Group:  Feature Request
Status:  Confirmed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 25 Oct 2020 09:01:28 AM UTC, comment #9: 

The change from comment #8 has been reverted for bug #55854 here:
https://hg.savannah.gnu.org/hgweb/octave/rev/35f9ffb13fd6

Setting OS back to any and reverting status to confirmed.

Markus Mützel <mmuetzel>
Group administrator
Wed 31 Oct 2018 12:35:20 PM UTC, comment #8: 

I have added some minor changes to this old patch and pushed it with changeset http://hg.savannah.gnu.org/hgweb/octave/rev/976e7346abf4

Stefan, thanks for the patch.

Setting OS back to windows.

Torsten Lilge <ttl>
Group Member
Fri 12 Feb 2016 12:29:27 AM UTC, comment #7: 

I modified the patch, now it can handle multiple lines, and the behaviour of backspace is also corrected.

(file #36321)

Stefan Miereis <stefanm>
Thu 28 Jan 2016 08:15:16 PM UTC, comment #6: 

Thanks for your feedback, Lachlan!
I'll look into handling multi-line commands. (I kind of hoped that would be rendered moot by my work on bug #41842, but thats probably going to take a while)

Stefan Miereis <stefanm>
Thu 28 Jan 2016 10:22:20 AM UTC, comment #5: 

Thanks for the patch, Stefan.

The first part moving the cursor works well provided the command doesn't span multiple lines.

The second part replaced the wrong characters.  The attached patch seems to get it right (it uses Backspace instead of Delete, and moves the cursor to the end of the selection first).

It still fails if the command spans multiple lines, and if the key that triggered the event was also backspace then it should only delete the selected text, but it also deletes the one before.

Do you still have some time to work on this patch?  (I can't guarantee anyone apply it even if we finish it, but let's try.)

(file #36189)

Lachlan Andrew <lachlan>
Tue 14 Jul 2015 08:49:47 PM UTC, comment #4: 

I attached a patch that implements the functionality in the GUI terminal on linux.

(file #34446)

Stefan Miereis <stefanm>
Mon 04 May 2015 01:02:33 AM UTC, comment #3: 

Its the same in linux as well - marking OS as Any.

John Donoghue <lostbard>
Group Member
Sun 03 May 2015 09:08:44 PM UTC, comment #2: 

... and adapting title (fix typo)

Philip Nienhuis <philipnienhuis>
Group Member
Sun 03 May 2015 09:07:19 PM UTC, comment #1: 

Confirmed.

Do you work in the Octave GUI, or with the CLI (just a terminal)?

FYI, Windows' cmd32 terminal and Powershell have the same behavior. You do type your Octave commands in a terminal after all, so in a way Octave's behavior isn't unexpected.
And, Matlab r2014b behaves identically (which IMO is not to be interpreted as an endorsement to copy & retain ML behavior everywhere).

But I agree the behavior you desire (like e.g., the GUI editor does) would be nice for the current line in the terminal (or terminal pane) as well.

Lowering priority & severity

Philip Nienhuis <philipnienhuis>
Group Member
Sun 03 May 2015 01:34:59 PM UTC, original submission:  

At the moment when you type in the command line, you can select text with your mouse (and copy/paste it just as expected), but when you want to overwrite the selected text, you'll just write where the cursor originally was. Also you cannot change the cursor position by clicking with the mouse. So the 'mouse selection' only works for reading, if you want to overwrite/delete text, you have to use the arrowkeys.

It would be great if you could use the cursor too, like you are used to from everywhere else.

This was only tested on Windows 7 (Octave 3.8.2 i686-w64-mingw32), so perhaps it works on other systems.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #36321:  bug_45003_v3.diff added by stefanm (4KiB - application/x-download)
file #36189:  bug_45003_v2.diff added by lachlan (3KiB - text/x-diff)
file #34446:  bug_45003.diff added by stefanm (2KiB - text/x-diff)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  • -email is unavailable- added by lachlan (Updated the item)
  • -email is unavailable- added by stefanm (Updated the item)
  • -email is unavailable- added by lostbard (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 14 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-11-19 mtmiller Carbon-CopyRemoved 80942 -
    2020-10-25 mmuetzel StatusPatch Submitted Confirmed
        Operating SystemMicrosoft Windows Any
    2018-10-31 ttl Operating SystemAny Microsoft Windows
    2018-05-01 mtmiller StatusConfirmed Patch Submitted
        Release3.8.2 dev
    2016-02-12 stefanm Attached File- Added bug_45003_v3.diff, #36321
    2016-01-28 lachlan Attached File- Added bug_45003_v2.diff, #36189
    2015-07-14 stefanm Attached File- Added bug_45003.diff, #34446
    2015-05-04 lostbard Operating SystemMicrosoft Windows Any
    2015-05-03 philipnienhuis SummaryMake command like mouse compatible Make command line mouse compatible
    2015-05-03 philipnienhuis Severity3 - Normal 2 - Minor
        Priority5 - Normal 3 - Low
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code