Feature Request: Plain Text Paste (CTRL-SHIFT-V)

Please use this forum to post feedback and suggestions related to QCAD.

Moderator: andrew

Post Reply
iOne iTwo
Active Member
Posts: 37
Joined: Thu Oct 26, 2023 5:50 pm

Feature Request: Plain Text Paste (CTRL-SHIFT-V)

Post by iOne iTwo » Fri Oct 27, 2023 6:58 am

Could you add "plain text paste" as ctrl-shift-V

Why? Because sometimes the clipboard comes in with rich text formatting that's anti-helpful.
Capture.JPG
Capture.JPG (34.82 KiB) Viewed 72698 times
The workaround is to paste into a plain text editor, or the console, then recopy and repaste into qCad.
One could also argue that qCad should NEVER take rich text, and rather only accept the plain text.
Either way the ctrl-shift-V shortcut is useful for those trained on other software.

CVH
Premier Member
Posts: 4902
Joined: Wed Sep 27, 2017 4:17 pm

Re: Feature Request: Plain Text Paste (CTRL-SHIFT-V)

Post by CVH » Fri Oct 27, 2023 7:23 am

Agreed, having encountered it numerous times while documenting with text snippets from elsewhere. :roll:
Even copying Info measurements from the Command Line are Rich Text.

The best place to file a feature request is QCAD Bugtracker:
https://www.ribbonsoft.com/bugtracker/
You may need a different account there or make a new one.

May I remark that Ctrl-Shift-V is already in use for Paste along Entity (PE)
But not when the Text Editor Widget has the focus and dialog Widgets are always modal on a Win OS system. :wink:
Still, I'll vote for it in any way.:P

Regards,
CVH

iOne iTwo
Active Member
Posts: 37
Joined: Thu Oct 26, 2023 5:50 pm

Re: Feature Request: Plain Text Paste (CTRL-SHIFT-V)

Post by iOne iTwo » Wed Mar 06, 2024 4:26 am


User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 5054
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: Feature Request: Plain Text Paste (CTRL-SHIFT-V)

Post by Husky » Wed Mar 06, 2024 5:31 am

This issue exist since decades - not only with Qcad. That is the reason why a ton of offline Clipboard Manager have the option to copy/paste plain text or formatted text. They are literally built for that task! Many of then switch from plain to rich text just with a shift key combination. Many are also customizable. Ctrl Shift V shouldn't be a problem when you rename in Qcad the shortcut for "Paste along Entity".

IMHO - I see no need to reinvent the wheel again ...
Work smart, not hard: QCad Pro
QcadPro, QcadCam, Win11/64, 64GB RAM, 10-Core, SSD
If a thread is considered as "solved" pls. change the title of the 1. post to "[solved] Title..."

CVH
Premier Member
Posts: 4902
Joined: Wed Sep 27, 2017 4:17 pm

Re: Feature Request: Plain Text Paste (CTRL-SHIFT-V)

Post by CVH » Thu Mar 07, 2024 8:31 am

Husky wrote:
Wed Mar 06, 2024 5:31 am
IMHO - I see no need to reinvent the wheel again ...
Removed Ctrl-Shift-V as shortcut for PE.
One of the reasons is that I never used this key combination for this tool.
Another reason is that it is completely different compared with the standard Win Ctrl-Shift-V behavior.
Additionally, PE has some issues and limitations I dislike. :(
FS#1345 ; FS#1836 ; FS#2087 ... Mostly because it doesn't account for any length of the things to paste.

I still can't paste in plain text mode to the QCAD Text Editor widget.

One of the source I often use is copying text from the Command Line history, especially results from the info tools.
These are handle by EAction.handleUserInfo(...) and are in color #0066cc by default.
After selecting a portion of text one can not copy that with Ctrl-C but one can use the context menu: R-Click .. Copy.

Ctrl-V, Shift-Insert and context menu .. Paste are all in Rich text, Ctrl-Shift-V is not functional in the QCAD Text Editor.

It is thus not the question of 'reinvent the wheel again', it is a question of implementing an extra context menu method to strip formatting.
Or to support Ctrl-Shift-V in the QCAD Text Editor and deprecate this shortcut for PE.

The work around is to set your text to simple or edit the source of your text directly.
Still, pasting plain text for the latter it will be formatted in a last active format what is intended behavior.
Editing the source of formatted text can be tricky.

Bottom line:
The detour via a plain text editor is usually safer, faster and easier than having to adjust it every time in the QCAD text editor.


@ iOne iTwo: I have voted for your feature request FS#2544.
Other users that have an interest in this feature should vote it up.

Regards,
CVH

iOne iTwo
Active Member
Posts: 37
Joined: Thu Oct 26, 2023 5:50 pm

Re: Feature Request: Plain Text Paste (CTRL-SHIFT-V)

Post by iOne iTwo » Sat Feb 01, 2025 6:05 pm

I've been using a browser URL bar to strip text of formatting.
Like CVH I found that using a Windows CMD line to strip formatting led to problems: the text came in with a color.

Please consider this feature of plain text paste.

The bug tracker is at:

https://www.qcad.org/bugtracker/index.p ... &closedto=

CVH
Premier Member
Posts: 4902
Joined: Wed Sep 27, 2017 4:17 pm

Re: Feature Request: Plain Text Paste (CTRL-SHIFT-V)

Post by CVH » Sat Feb 01, 2025 10:23 pm

Hi,

As explained above:
Your best option is to take a detour through for example Windows Notepad.

In my case I use Notepad++ because that is almost always open for scripting.

A browser URL bar or even the Windows Command Line would be my last resort.
My browser should not search for the text and Windows should not try to execute the text as a command at all. :wink:

Regards,
CVH

User avatar
andrew
Site Admin
Posts: 8772
Joined: Fri Mar 30, 2007 6:07 am

Re: Feature Request: Plain Text Paste (CTRL-SHIFT-V)

Post by andrew » Mon Feb 03, 2025 9:56 am

As far as I know, Windows has a built-in feature to paste as plain text. It's part of the "clipboard history":

https://winaero.com/paste-as-plain-text ... d-history/

iOne iTwo
Active Member
Posts: 37
Joined: Thu Oct 26, 2023 5:50 pm

Re: Feature Request: Plain Text Paste (CTRL-SHIFT-V)

Post by iOne iTwo » Wed Mar 26, 2025 5:00 am

The plain text clip windows clipboard feature appears to have been removed.
Clipboard history has security issues as well: there are reasons to avoid it.

How hard is CTRL-SHIFT-V for qCad to implement : that's the defacto standard,
and a lot less keystrokes.

CVH
Premier Member
Posts: 4902
Joined: Wed Sep 27, 2017 4:17 pm

Re: Feature Request: Plain Text Paste (CTRL-SHIFT-V)

Post by CVH » Wed Mar 26, 2025 6:01 am

iOne iTwo wrote:
Wed Mar 26, 2025 5:00 am
How hard is CTRL-SHIFT-V for qCad to implement : that's the defacto standard,
and a lot less keystrokes.
The first reason would be:
CVH wrote:
Fri Oct 27, 2023 7:23 am
May I remark that Ctrl-Shift-V is already in use for Paste along Entity (PE)
Tend to use PE myself, disabled Ctrl-Shift-V as shortcut.
Not that this solves the issue as per:
Husky wrote:
Wed Mar 06, 2024 5:31 am
Ctrl Shift V shouldn't be a problem when you rename in Qcad the shortcut for "Paste along Entity".
IMHO - I see no need to reinvent the wheel again ...
Regards,
CVH

Jose Vieira
Newbie Member
Posts: 8
Joined: Sat May 16, 2015 10:12 pm

Re: Feature Request: Plain Text Paste (CTRL-SHIFT-V)

Post by Jose Vieira » Thu Apr 17, 2025 7:48 pm

Try to choose "simple text" option, paste and then, unchoose "simple text option. That's what I do...

CVH
Premier Member
Posts: 4902
Joined: Wed Sep 27, 2017 4:17 pm

Re: Feature Request: Plain Text Paste (CTRL-SHIFT-V)

Post by CVH » Fri Apr 18, 2025 6:52 am

@Jose Vieira
Jose Vieira wrote:
Thu Apr 17, 2025 7:48 pm
Try to choose "simple text" option, paste and then, unchoose "simple text option. That's what I do...
Your method is indeed a work arround also mentioned a few posts up (p44022) :wink:

The catch is that inserting text into an inline formatted Rich text string will use the currently active formatting at that point.
Rich text formatting is typically a prefix but there is no suffix included to turn things back to normal.
Fiddling in the text source to get it right can be tricky.
As example: Setting only some words of a long text in another color.

Pasting plain text would also ensure that the main text settings and the default color are used.

Regards,
CVH

Post Reply

Return to “QCAD Suggestions and Feedback”