bugGNU Octave - Bugs: bug #57699, [Feature Request] 'clipboard'...

 
 

bug #57699: [Feature Request] 'clipboard' function to interact with clipboard contents

Submitter:  None
Submitted:  Thu 30 Jan 2020 03:23:22 PM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
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
   

Mon 27 Apr 2020 12:30:08 AM UTC, comment #3: 

Hello everyone,

I submitted a patch for this bug. Please, let me know what you think.

Note: I didn't implement clipboard("pastespecial") since it depends on uiimport which I believe is not implemented in Octave.
best of luck.

(file #48949)

Abdallah Khaled Elshamy <abdallah_elshamy>
Sat 15 Feb 2020 04:37:26 AM UTC, comment #2: 

Are you willing to rely on a Java-enabled build to support this? Implementing this using Java Standard Library classes is pretty easy.

Andrew Janke <apjanke>
Thu 30 Jan 2020 10:25:25 PM UTC, comment #1: 

I agree that an Octave implementation of the clipboard function would be useful, updating bug summary and status, and adding to wiki short projects list.

Mike Miller <mtmiller>
Group Member
Thu 30 Jan 2020 03:23:22 PM UTC, original submission:  

Hello everyone, I'd like to request a feature that would allow the user to copy to / paste from the clipboard automatically.

In Matlab there is a clipboard.m, which uses some Java Objects as far as I can see. However in Octave, that function is still missing. I've searched the mailing list archives and of course this forum, and there doesn't even seem to be the need for it (?).

The issue for me came up when I tried to edit a UItable - you currently can't copy/paste on multiple selected cells, you can only copy/paste a single cell.
It would also be useful to have a function that simply read from / writes to the current clipboard. Somewhere in the Octave GUI handling there has to be something like this already since you can copy/paste for example in the variable editor. But currently that functionality is inaccessible for simple front-end users like myself...

For the sake of documentation: there are currently multiple workarounds for this issue, including one that uses xclip or clip.exe depending on the OS. What's so frustrating is how to implement a paste option in Windows, since clip.exe only works in one direction, some available paste.exe requires a higher .NET-Framework than I currently have and want, and calling the Windows Powershell - where commands like Get-Clipboard and Set-Clipboard are available - to output a text file completely messes up the format when I use system() to do that (and ONLY then). Personally, I'll try a different workaround now and/or make use of a Java robot, but it would still be nice to have a clipboard.m-like function in the future :)

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #48949:  clipboard.patch added by abdallah_elshamy (6KiB - text/x-patch)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by abdallah_elshamy (Updated the item)
  • -email is unavailable- added by apjanke (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-04-27 abdallah_elshamy Attached File- Added clipboard.patch, #48949
    2020-01-30 mtmiller Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low
        StatusNone Confirmed
        SummaryFunction for user to interact with clipboard contents [Feature Request] 'clipboard' function to interact with clipboard contents

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code