Cut / Paste / Insert Hotkey

Bug #1215603 reported by Fidel
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
leo-editor
Confirmed
Wishlist
Edward K. Ream

Bug Description

Sumarizing the post https://groups.google.com/forum/#!topic/leo-editor/3RQsBxkYqUw

We could switch cut/paste/insert to the standard hotkeys used by every other software.

For this to be possible, cut/paste commands should first pick up if:
-There is currently a selected text (either in currently selected header, body, or pane whatsoever)
-There is a node/outline on the clipboard (is there a way to check that?)

Then, for the cut command:
- If there is text selected, does cut text
- If there is not selected text, does cut node

Then, for the paste command:
- If text on clipboard is a node, do paste node
- If text on clipboard is text, do paste text

For the cases that the user wants to paste the node in the clipboard as text (which I think might be fewer but maybe thats only my case) then the user can do control+shift+paste.

Tags: wishlist
Changed in leo-editor:
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → Edward K. Ream (edreamleo)
Revision history for this message
Fidel (fidelperez) wrote :

I was thinking, it has a potential problem:
If the user accidentally does control-x twice, text will be cut then node will be cut. As long as undoer can undo both, we are safe.

I have also seen elsewhere that there will be two "clipboards", one for data, another for nodes. So if the user copies a node, it goes to the nodes clipboard, text to text. This way the user could copy text from one node, copy and paste a node to somewhere else, then paste the text he had in the text clipboard. Leo pasting Nodes or text would depend on where does the user have the focus.
Focus on tree-> Paste the nodes clipboard containings
Focus on any other pane-> paste the text clipboard containings.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.