Add paste-into-document@pzim-devdata - #770
pzim-devdata wants to merge 19 commits into
Conversation
Paste clipboard content into new documents with format selection - Paste rich formatted text (HTML, bold, colors, tables preserved) - Paste images from clipboard or copied files - 11 output formats (ODT, PDF, TXT, MD, JSON, YAML, CSV, PY, SH, ODS, ODG) - Smart filename suggestion based on content - GTK dialog for filename and format selection - Document created without auto-opening - Includes 21 language translations - Distinct from existing "paste-into-file" (text only)
- Add HTML with formatting (.html) option to preserve web page structure - Implement intelligent HTML text extraction for non-HTML formats - Text formats (.txt, .md, .py, etc.) now automatically strip HTML tags - Document formats (.odt, .pdf) extract clean text for readability - Enhance filename suggestion to filter out HTML/CSS keywords - Add strip_html_tags() function for clean text extraction - Modify get_clipboard_content() to handle HTML based on selected format This allows users to: - Copy from web pages and get clean, readable text in most formats - Preserve original HTML structure when specifically choosing .html format - Get better default filenames when copying formatted web content
- Add HTML with formatting (.html) option to preserve web page structure - Implement intelligent HTML text extraction for non-HTML formats - Text formats (.txt, .md, .py, etc.) now automatically strip HTML tags - Document formats (.odt, .pdf) extract clean text for readability - Enhance filename suggestion to filter out HTML/CSS keywords - Add strip_html_tags() function for clean text extraction - Modify get_clipboard_content() to handle HTML based on selected format This allows users to: - Copy from web pages and get clean, readable text in most formats - Preserve original HTML structure when specifically choosing .html format - Get better default filenames when copying formatted web content
|
Add HTML format option and improve web content handling
This allows users to:
|
|
Improve default filename generation with "most repeated word" strategy Enhanced the The script now uses a "most repeated word" approach:
Examples:
Also adds full Unicode support for accented characters (é, è, à, ç) and keeps ALL words in the final filename (including articles) for natural, readable phrases. This approach automatically identifies the document's key topic rather than taking arbitrary first words. |
…m-devdata/check.py
Title changed from 'Paste into Document (.odt)' to 'Paste into Document': the action no longer targets a single format. All po files updated accordingly (msgid + msgstr). New features: - 'No extension added' as the default dropdown entry: the filename gets no extension unless the user selects a format or types one - 14 additional extensions: js, ts, css, php, c, cpp, java, rb, xml, svg, ini, toml, sql, tsv, plus docx and rtf for documents - Two distinct HTML modes: 'HTML file from code' saves copied source code exactly as-is (plain text target), 'Raw HTML' keeps the clipboard text/html target of a copied web page Bug fix: - Clipboard content is now snapshotted once, before any dialog opens. Previously, copying text while naming the file (e.g. pasting the name itself) replaced the original content in the final document.
|
Rename action and improve format handling Title changed from 'Paste into Document (.odt)' to 'Paste into Document': New features:
Bug fix:
|

Paste clipboard content into new documents with format selection