asciidocfx / AsciidocFX

Asciidoc Editor and Toolchain written with JavaFX 21 (Build PDF, Epub, Mobi and HTML books, documents and slides)
http://www.asciidocfx.com/
Apache License 2.0
1.88k stars 295 forks source link

dynamic c/p of images/screenshots #492

Closed wibrt closed 3 years ago

wibrt commented 3 years ago

feature request:

programs like tiddlywiki, qownotes, zim, .. support the ability to paste an image into the editor, it would be nice to have something similar like this in asciidocfx, speeding up productivity

for example after pasting an image in qownotes, the following code is shown (their own markup): qownnotes-media-BzZWks and the actual pasted image is shown in the the preview

for example: image

--

so for asciidocfx this would translate to:

  1. paste the image
  2. automatically add code image::images/image_id_string.png[]
  3. optionally ask for the desired name of image when pasting, with a images/image_id_string.png already prefilled in the input field for this
  4. optionally make the images directory a setting, maybe a separate setting from the images that come from the filesystem, which are more likely to have a meaningful name 4.1 dir images for images put there by the user 4.2 dir images_pasted for this use case or pasted images which might have not such meaningful name
wibrt commented 3 years ago

ctrl+v doesnt work, but it this seems implemented with clipboard pasting, using the mouse to paste the content of the clipboard

just wondering/asking, why does ctrl+v only work for text and not for the clipboard?

rahmanusta commented 3 years ago

Sorry, you can use ctrl-shift-v, I think it should paste the clipboard image.