Project

General

Profile

Feature #3996

/inlineimage add new parameter -r

Added by westor (GR) 11 days ago. Updated 11 days ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
07/07/2018
Due date:
% Done:

0%

Estimated time:
Operative System:
All

Description

Hello,

I wanna request an new parameter of /inlineimage command that will hide the already inlined image for preview, because now there is not any way to hide certain inlineimages from preview and if someone pastes an porn image or something that i want to hide it then i cannot, it would be nice to have this feature on because we can work on right click to create custom hiding/parsing codes.

Examples:

/inlineimage -c <window> <file|url>

I will provide some useful scripting methods that this is gonna be useful, under Menus Editor on Links you can enter that code:

NOTE: The only 'problem' here is to make -c to work only for the specific right click selected inline image and on others above that used the same file/url to be parsed.

Parse Inline Image: {
  var %p = /.*\.(?:jpe?g|gif|png|tiff|ico)$/
  if ($regex($$1,%p)) { inlineimage -a $$1 }
}
Hide Inline Image: {
  var %p = /.*\.(?:jpe?g|gif|png|tiff|ico)$/
  if ($regex($$1,%p)) { inlineimage -ca $$1 }
}

- Thanks!

History

#1

Updated by westor (GR) 11 days ago

Just to give you an image of how-to work:

#2

Updated by Per Amundsen 11 days ago

  • Subject changed from /inlineimage -c to /inlineimage add new parameter -r
  • Status changed from New to Resolved
#3

Updated by Per Amundsen 11 days ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF