Opened 6 years ago

Last modified 5 years ago

#2915 assigned defect

cannot save plain text file from Help Viewer

Reported by: Elaine Meng Owned by: Greg Couch
Priority: moderate Milestone:
Component: Help System Version:
Keywords: Cc: chimera-programmers
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

... or at least I can't figure out how to do it.

I am trying to include a cxc script in a click-to-execute tutorial. However, seems dangerous to simply "open URL://http-blah-blah-.cxc" as an executable command and also would be nice to show people the contents first. However I cannot link to cxc file and then say to download as plain text from the Help Viewer, because it doesn't seem to allow that. If I use context menu to save file, it gets a bunch of mime junk it in it and then cannot be executed. Alternatively, user cannot copy the text of the whole thing to be pasted into a file either, or at least I can't figure out how to do it. I also thought there may have been a related ticket already but I couldn't find it. Reclassify as needed.

Change History (3)

comment:1 by Eric Pettersen, 6 years ago

Owner: set to Greg Couch
Status: newassigned

in reply to:  2 ; comment:2 by Elaine Meng, 5 years ago

Maybe duplicate of #2080?

comment:3 by Eric Pettersen, 5 years ago

Priority: majormoderate
Summary: cannot copy text or save plain text file from Help Viewercannot save plain text file from Help Viewer

Fixed the text copying by switching from using the page's Copy() method to putting the page's selectedText() into the app clipboard (which means it's plain text, but at least the command text is reliably present). Leaving the ticket open for the part about saving a file from the log.

Note: See TracTickets for help on using tickets.