Conversation
| id: mouseArea | ||
| anchors.fill: parent | ||
| anchors.rightMargin: 80 | ||
| anchors.left: parent.left |
There was a problem hiding this comment.
required for making all buttons clickable, otherwise the leftmost button was not operational
|
Hi there, this looks pretty cool. It'll be a couple of days yet and @bbedward and I will talk this over. |
| } | ||
| } | ||
|
|
||
| Item { |
There was a problem hiding this comment.
Would probably be better if we broke this out into a ClipboardEditor.qml , or something else if more appropriate.
| ClipboardService.selectedIndex = 0; | ||
| ClipboardService.keyboardNavigationActive = false; | ||
| } | ||
| property var editClipboardModal: null |
There was a problem hiding this comment.
Doesn't seem to be set anywhere
| Popup { | ||
| id: saveMenu | ||
| parent: Overlay.overlay | ||
| width: 220 |
There was a problem hiding this comment.
Prefer not to use hardcoded widths here, but rather implicitWidth of the content, it may not scale with larger font sizes etc.
|
|
||
| StyledRect { | ||
| width: saveMenu.width - saveMenu.padding * 2 | ||
| height: 32 |
There was a problem hiding this comment.
Same with hardcoded height.
| service: ClipboardService | ||
| } | ||
|
|
||
| property string mode: "history" |
There was a problem hiding this comment.
I'd prefer to use an enum here but it's not a big deal since theyre kinda annoying in QML
|
Is this actively being worked on @nabaco? |
Summary
Enhance the clipboard history modal with a basic text editor. It works both for short and long entries (with base64 decode), a split save menu with multiple save actions, new keyboard shortcuts and hints. Usefull when pasting the same thing multiple times with small edits (terminal commands, IM messages), or for sanitizing text before pasting into the terminal.
Changes
clipboard.getEntry) and decodes base64 viaQt.atob/atob(needed for long text)Escin editor reliably returns to historyCtrl+Tab/Ctrl+Shift+Tab: switch Recents/SavedCtrl+S: pin/unpin selected entryCtrl+E: edit selected entryCtrl+S: saveCtrl+Shift+S: save & closeCtrl+Shift+V: save & pasteEsc: return to historyTesting
Todo
Screenshots / Videos
Added "edit" button
Edit UI
Save button
Keyboard hints
Screencast.mp4