Author Topic: Add support for Paste as unformatted text  (Read 1839 times)

bockfu

  • EA User
  • **
  • Posts: 55
  • Karma: +4/-1
    • View Profile
Add support for Paste as unformatted text
« on: August 19, 2016, 02:18:11 pm »
i would like to optionally be able to paste unformatted text in an elements notes field.

Today only paste is supported and I typically open a text editor, copy from email/web browser/doc/IM , paste in text editor, copy, then paste in EA.  This avoids the inconsistent results in pasting any rich text you may have originally copied.

Being able to copy from anywhere then paste as unformatted text would greatly improve my workflow.

Ive been using 12.0 thus far and am not aware of any such feature existing today. 

Updated to request this as an optional feature.
« Last Edit: August 27, 2016, 01:25:34 pm by bockfu »

Helmut Ortmann

  • EA User
  • **
  • Posts: 869
  • Karma: +37/-1
    • View Profile
Re: Add support for Paste as unformatted text
« Reply #1 on: August 19, 2016, 03:33:59 pm »
Hi,

in my opinion this makes sense. But one has to be aware: The Notes contain formatting (e.g. EA additional features like Links and more).

In 13.1 most things are copied unformatted. From e.g. Word it uses formatting.

Kind regards,

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

qwerty

  • EA Guru
  • *****
  • Posts: 8849
  • Karma: +134/-117
  • I'm no guru at all
    • View Profile
Re: Add support for Paste as unformatted text
« Reply #2 on: August 19, 2016, 07:37:16 pm »
This is in discussion since ages and Sparx does seem to be interested in fixing it. If you paste formatted text, if shows all kinds of formatting inside the notes box. But then EA stores it in its own crippled format which you only recognize once you reload the notes for displaying.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 7619
  • Karma: +154/-21
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Add support for Paste as unformatted text
« Reply #3 on: August 22, 2016, 06:01:44 pm »
In other applications Ctrl-Shift-V pasts as unformatted text.

That might be a good idea for EA as well.

Geert

bockfu

  • EA User
  • **
  • Posts: 55
  • Karma: +4/-1
    • View Profile
Re: Add support for Paste as unformatted text
« Reply #4 on: August 27, 2016, 01:22:34 pm »
These days, most applications seem to paste whatever is on the clipboard by default, but offer a right-mouse-button context menu that offers an optional 'paste as unformatted text' option.

That is what I was going for. 

So the default behavior would go unchanged.

I'll update the initial post.

Hermont

  • EA Novice
  • *
  • Posts: 19
  • Karma: +0/-0
    • View Profile
Re: Add support for Paste as unformatted text
« Reply #5 on: August 30, 2016, 03:46:45 am »
Got my vote.

stevesavage

  • EA User
  • **
  • Posts: 113
  • Karma: +3/-0
    • View Profile
Re: Add support for Paste as unformatted text
« Reply #6 on: September 07, 2016, 11:49:25 pm »
Made a workaround for this.
I use a program called AutoHotKey to automate some tasks in Sparx EA.  Mainly for creating new elements from text selected in notes/linked documents, or linking selected text to existing elements.

But, I've also setup the hot key ctrl + alt + v so I can paste unformulated text in to my notes.

Autohotkey:
https://autohotkey.com/

Script:
   ^!v::
      WinGetActiveTitle title
      if(instr(title,"Enterprise Architect"))
      {
         Clipboard=%Clipboard%
         Clipwait
         Send ^v
      }
      exit

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 7619
  • Karma: +154/-21
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Add support for Paste as unformatted text
« Reply #7 on: September 08, 2016, 04:15:16 pm »
Made a workaround for this.
I use a program called AutoHotKey to automate some tasks in Sparx EA.  Mainly for creating new elements from text selected in notes/linked documents, or linking selected text to existing elements.

But, I've also setup the hot key ctrl + alt + v so I can paste unformulated text in to my notes.

Autohotkey:
https://autohotkey.com/

Script:
   ^!v::
      WinGetActiveTitle title
      if(instr(title,"Enterprise Architect"))
      {
         Clipboard=%Clipboard%
         Clipwait
         Send ^v
      }
      exit
Nice  ;D

Geert

Helmut Ortmann

  • EA User
  • **
  • Posts: 869
  • Karma: +37/-1
    • View Profile
Re: Add support for Paste as unformatted text
« Reply #8 on: September 09, 2016, 04:58:56 pm »
Hi Geert,

looks as you have found a way to simply add features to EA by just a click.

I will give it a try.

Thanks, looks great.

Kind regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 7619
  • Karma: +154/-21
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Add support for Paste as unformatted text
« Reply #9 on: September 09, 2016, 05:13:38 pm »
Hi Geert,

looks as you have found a way to simply add features to EA by just a click.

I will give it a try.

Thanks, looks great.

Kind regards,

Helmut

I guess you meant Steve right?

Geert

Helmut Ortmann

  • EA User
  • **
  • Posts: 869
  • Karma: +37/-1
    • View Profile
Re: Add support for Paste as unformatted text
« Reply #10 on: September 09, 2016, 11:39:39 pm »
Hi Geert, Steve

Geert, you are right.

@Steve
Thanks a lot. Can you elaborate on the usage of autohotkey and EA.

Regards,

Helmut

Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

stevesavage

  • EA User
  • **
  • Posts: 113
  • Karma: +3/-0
    • View Profile
Re: Add support for Paste as unformatted text
« Reply #11 on: September 19, 2016, 10:07:43 am »
@Steve
Thanks a lot. Can you elaborate on the usage of autohotkey and EA.
Regards,
Helmut

Hi Helmut, I've put a bit of an explanation on my blog, http://stevenksavage.com/2016/09/18/using-autohotkey-with-sparx-ea-the-basics/

Helmut Ortmann

  • EA User
  • **
  • Posts: 869
  • Karma: +37/-1
    • View Profile
Re: Add support for Paste as unformatted text
« Reply #12 on: September 19, 2016, 03:55:36 pm »
Hi Steve,

I got the picture.

Thanks for elaborating the example. It is helpful.

Kind regards,

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

stevesavage

  • EA User
  • **
  • Posts: 113
  • Karma: +3/-0
    • View Profile
Re: Add support for Paste as unformatted text
« Reply #13 on: September 20, 2016, 01:11:30 am »
No problem, I plan to add another example on how you can make AutoHotKey behave differently depending on what part Sparx EA is currently in focus, e.g. the Diagram Pane, Project Browser, or Notes for example.

skiwi

  • EA Practitioner
  • ***
  • Posts: 1727
  • Karma: +23/-49
    • View Profile
Re: Add support for Paste as unformatted text
« Reply #14 on: October 10, 2016, 12:32:23 pm »
These days, most applications seem to paste whatever is on the clipboard by default, but offer a right-mouse-button context menu that offers an optional 'paste as unformatted text' option.

That is what I was going for. 

So the default behavior would go unchanged.

I'll update the initial post.
+1
Orthogonality rules
Using EA12.1 (1229) on Windows 10 Enterprise/64 bit. Repositories in SQLServer2014 R2 & Access2003/JET4.0