1080linebooks / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

Clip Editor for saving and inserting text #588

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would like to request a toolbar with several buttons, which would be 
programmable, to paste in a clip when each button is pressed.

See this thread on the forum for more details.

http://www.mobileread.com/forums/showthread.php?p=1121696

Thanks

Original issue reported on code.google.com by leighfpa...@gmail.com on 21 Sep 2010 at 8:22

GoogleCodeExporter commented 9 years ago
I don't know if it would be possible, but if in the clip was a tag of some 
sort, then any selected text would get inserted in to that place.

(Using '(.+)' as tag) - In codeview
eg clip
<p><strong>(.+)</strong></p>

if selection was on
Title of chapter

replacement would be

<p><strong>Title of chapter</strong></p>

Original comment by leighfpa...@gmail.com on 23 Sep 2010 at 10:14

GoogleCodeExporter commented 9 years ago
I'm still thinking this over.

Original comment by Strahinja.Markovic@gmail.com on 23 Sep 2010 at 10:17

GoogleCodeExporter commented 9 years ago
I've decided to go along with this. It won't be implemented any time soon since 
there are many other more important features on my plate, but it's on the list. 
It will be done one day.

Original comment by Strahinja.Markovic@gmail.com on 7 Oct 2010 at 2:53

GoogleCodeExporter commented 9 years ago

Original comment by Strahinja.Markovic@gmail.com on 21 Jul 2011 at 9:42

GoogleCodeExporter commented 9 years ago
Patch uploaded for review.

Clipboard functionality for Code View:

- Saves/manages text that can be pasted into Code View or CSS files
- Allows text to be pasted before and after current selection (e.g. HTML tag 
pairs)
- Right-click context menu in CV to allow selecting named entries to paste
- Groups can be used to create context submenus for easier management of large 
collections
- non-modal Clipboard Manager to create/edit/re-order entries or paste into CV
- Entries at the top of the clipboard are used for the context menu (15/20 per 
group)
- Context menu not active if word is mispelled to avoid too many menu entries
- Menu entry Edit->Clipboard or right click in CV->Clipboard to open Clipboard 
Manager

Original comment by meme90...@gmail.com on 21 Apr 2012 at 4:00

Attachments:

GoogleCodeExporter commented 9 years ago
Updated patch, merged with latest source.

Original comment by meme90...@gmail.com on 22 Apr 2012 at 4:27

Attachments:

GoogleCodeExporter commented 9 years ago
Uploaded actual patch.

Original comment by meme90...@gmail.com on 22 Apr 2012 at 4:46

Attachments:

GoogleCodeExporter commented 9 years ago
Just managed to look through the code, looks like it's going to be a useful 
addition to using Sigil, the only thing I could think of (at this moment ;)) 
would be to also add a 'replace' (selection) along with the before & after 
slots.

For example, you could then easily replace/change any selection to <hr 
class="chap_break" />
Useful for when you can't do a regex for a set selection text for whatever 
reason (usualy bad OCR)

Not super important as a simple workaround could be that the user could use the 
replace in one of the before/after slots, then with text selected, use clip, 
then delete whatever was selected.

But would be handy and a lot quicker (and you wouldn't forget to delete 
selection) if you had a replace text as well.

Thanks. 

Original comment by leighfpa...@gmail.com on 22 Apr 2012 at 7:21

GoogleCodeExporter commented 9 years ago
Uploaded new patch.  Fixed some issues.

Changed to use 1 field for Text replacement - uses Regex, e.g. allows <p>\0</p> 
with \0 being replaced by selection.

Added Import/Export functions for sharing entries.

Original comment by meme90...@gmail.com on 23 Apr 2012 at 7:56

Attachments:

GoogleCodeExporter commented 9 years ago
Updated - export all, check if file exported ok.

Original comment by meme90...@gmail.com on 24 Apr 2012 at 6:49

Attachments:

GoogleCodeExporter commented 9 years ago
Updated patch, fixes a few minor issues.

Original comment by meme90...@gmail.com on 24 Apr 2012 at 5:04

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by meme90...@gmail.com on 24 Apr 2012 at 5:04

GoogleCodeExporter commented 9 years ago
Issue 154 has been merged into this issue.

Original comment by meme90...@gmail.com on 25 Apr 2012 at 7:34

GoogleCodeExporter commented 9 years ago
Updated patch merged with latest source.

Original comment by meme90...@gmail.com on 5 May 2012 at 9:26

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by daveheil...@gmail.com on 19 May 2012 at 3:20

GoogleCodeExporter commented 9 years ago

Original comment by daveheil...@gmail.com on 19 May 2012 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by daveheil...@gmail.com on 21 Jul 2012 at 6:52

GoogleCodeExporter commented 9 years ago
Issue 1516 has been merged into this issue.

Original comment by daveheil...@gmail.com on 27 Jul 2012 at 4:43

GoogleCodeExporter commented 9 years ago
Issue 1458 has been merged into this issue.

Original comment by daveheil...@gmail.com on 2 Aug 2012 at 6:19

GoogleCodeExporter commented 9 years ago
Clipboard functionality for Code View merged - completely revised:

- Saves/manages text or patterns that can be pasted into Code View or CSS files
- Allows text to be inserted if no text selected
- Allows text to be modified if text is selected using regex commands - e.g. 
add tag before/after

Code View:
- Context menu to allow selecting named entries
- Shows full heirarchy
- Allows adding selected text to clipboard

- Clipboard Editor 
- Hierarchy of entries and groups supported
- Allows pasting direct into CV from editor
- Supports creating groups
- Drag and drop supported
- Context menu for most functions
- Add entries/groups
- Cut/Copy/Paste/Delete
- Collapse/Expand all groups
- Import/Export entries or groups
- Default example entries if no user entries
- Can paste groups (first entry uses regex, remaining are just inserted)
- Context menu not active if word is mispelled to avoid too many menu entries
- Filter on name (allows you to use shortcuts to open clipboard, filter and 
select a specific entry using keyboard only)

Original comment by daveheil...@gmail.com on 3 Aug 2012 at 8:07

GoogleCodeExporter commented 9 years ago

Original comment by daveheil...@gmail.com on 14 Aug 2012 at 4:58