Author Topic: Copying text from IMatch Notepad  (Read 290 times)

Tveloso

  • Sr. Member
  • **
  • Posts: 340
Copying text from IMatch Notepad
« on: June 28, 2022, 03:25:25 AM »
Currently, in order to select and copy text from the IMatch Notepad app, I must enter Edit Mode, and copy the desired text from the “Edit Panel” (where the MarkDown sometimes gets in the way a little).  The “Render Panel” does not allow text to be selected.

Is this something out of the ordinary on my PC?…(i.e. should the “Render Panel” also allow text to be selected and copied?)…or is this by design?
--Tony

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 31554
Re: Copying text from IMatch Notepad
« Reply #1 on: June 28, 2022, 08:33:57 AM »
Just an issue with the style sheet. Usually apps don't want to let the user accidentally select parts of the UI, because this looks strange.
The IMatch Notepad app inherits this as the default. Makes no sense, really.

You can fix this by opening the file c:\ProgramData\photools.com\IMatch6\webroot\imatch\apps\imatch-notepad\styles\app.css in Notepad and then change it like so:

body {
  width: 100%;
  height: 100%;
  user-select: auto !important;
}

Add the red part.
Then click into the IMatch Notepad app and press <Ctrl>+<F5> several times to force a reload. You can now select the rendered markdown content and copy it.
I will make this change for the next IMatch release.


Tveloso

  • Sr. Member
  • **
  • Posts: 340
Re: Copying text from IMatch Notepad
« Reply #2 on: June 29, 2022, 03:40:00 AM »
Thank you so much Mario.

The user-select line did the trick!
--Tony

Darius1968

  • Hero Member
  • ***
  • Posts: 996
  • ---Darius
Re: Copying text from IMatch Notepad
« Reply #3 on: August 03, 2022, 03:32:31 PM »
About c:\ProgramData\photools.com\IMatch6\webroot\imatch\apps\imatch-notepad\styles\app.css
The webroot directory isn't visible.  How do I make it so? 

Mario

  • IMatch Developer
  • Administrator
  • *****
  • Posts: 31554
Re: Copying text from IMatch Notepad
« Reply #4 on: August 03, 2022, 03:46:09 PM »
Configure Windows Explorer to show hidden files.
A quick Google reveals, from the Microsoft Web Site, https://support.microsoft.com/en-us/windows/view-hidden-files-and-folders-in-windows-97fbc472-c603-9d90-91d0-1166d1d9f4b5

Darius1968

  • Hero Member
  • ***
  • Posts: 996
  • ---Darius
Re: Copying text from IMatch Notepad
« Reply #5 on: August 03, 2022, 05:13:51 PM »
Oh, I should have already mentioned, before I posted here, I had already made sure File Explorer was set do display hidden files/folders. 

thrinn

  • Super Hero
  • ****
  • Posts: 1111
Re: Copying text from IMatch Notepad
« Reply #6 on: August 03, 2022, 05:41:16 PM »
C:\ProgramData\photools.com\IMatch6\webroot is the default directory. Did you check if you changed this directory? See Preferences screenshot...
Thorsten
Win 10 / 64, IMatch 2018, IMA

Darius1968

  • Hero Member
  • ***
  • Posts: 996
  • ---Darius
Re: Copying text from IMatch Notepad
« Reply #7 on: August 03, 2022, 05:51:19 PM »
Thorsten -
What your screenshot shows is exactly what is configured in my IMatch too.  The problem is that that directory is configured to be hidden, and as such, my File Explorer refuses its display.  Add to that, when I set the switch in File Explorer to allow hidden files/folders, it has no effect. 

thrinn

  • Super Hero
  • ****
  • Posts: 1111
Re: Copying text from IMatch Notepad
« Reply #8 on: August 03, 2022, 06:20:37 PM »
Ok, but even if the directory is not visible, you should be able to start Notepad, File > Open, then just paste the complete path c:\ProgramData\photools.com\IMatch6\webroot\imatch\apps\imatch-notepad\styles\app.css, and open the file? Does this not work for you?

I made a quick test, creating a hidden directory TEST under webapps and copy some css file into it. The TEST directory is not visible in the File Open dialog of Notepad, but as long as I know that the complete path is C:\ProgramData\photools.com\imatch6\webroot\TEST\app.css, I can just paste it in and open the file.
Thorsten
Win 10 / 64, IMatch 2018, IMA

Darius1968

  • Hero Member
  • ***
  • Posts: 996
  • ---Darius
Re: Copying text from IMatch Notepad
« Reply #9 on: August 03, 2022, 06:23:03 PM »
Okay, I'll try that...Thanks.