Giter VIP home page Giter VIP logo

Comments (8)

kjk avatar kjk commented on August 18, 2024

Allow color arguments for the following commands:

        case CmdCreateAnnotText:
        case CmdCreateAnnotLink:
        case CmdCreateAnnotFreeText:
        case CmdCreateAnnotLine:
        case CmdCreateAnnotSquare:
        case CmdCreateAnnotCircle:
        case CmdCreateAnnotPolygon:
        case CmdCreateAnnotPolyLine:
        case CmdCreateAnnotHighlight:
        case CmdCreateAnnotUnderline:
        case CmdCreateAnnotSquiggly:
        case CmdCreateAnnotStrikeOut:
        case CmdCreateAnnotRedact:
        case CmdCreateAnnotStamp:
        case CmdCreateAnnotCaret:
        case CmdCreateAnnotInk:
        case CmdCreateAnnotPopup:
        case CmdCreateAnnotFileAttachment: {

from sumatrapdf.

GitHubRulesOK avatar GitHubRulesOK commented on August 18, 2024

Wow
can we have something similar for call external app 0-9 with %filename %page and %selection
to replace external viewers and more ?

from sumatrapdf.

H5820121 avatar H5820121 commented on August 18, 2024

from sumatrapdf.

kjk avatar kjk commented on August 18, 2024

Sure, show me how you would like it to work.

from sumatrapdf.

GitHubRulesOK avatar GitHubRulesOK commented on August 18, 2024

Unsure on detailed concept but currently to run the external view commands it is 3 keys
so for example we need ALT & F & A but if it was either numeric or main key board addressable 1-9 based it would be easier
some duplication might be reduced so
CTRL + C =copy to clipboard but CTRL+C reassigned to
poor example external cmd.exe programable-notepad %f %p %s allows for simpler usage of clip

from sumatrapdf.

H5820121 avatar H5820121 commented on August 18, 2024

from sumatrapdf.

kjk avatar kjk commented on August 18, 2024

I could add CmdExternalCommand e.g.

[
   Cmd = CmdExternalCommand acrobat.exe ...args
   Key = 
]
[
   Cmd = CmdExternalCommand https://translate.google.com/?op=translate&sl=auto&tl=${userlang}&text=${selection}
   Key = 
]

which could kind of subsume ExternalViewers and SelectionHandlers except they don't require a shortcut assignment so it's weird to put them in shortcuts.

A possible solution would be to add a way to define new commands, like:

Commands [
  [
    Name = CmdTranslateSelectionWithGoogle
    Cmd = CmdExternalCommand https://translate.google.com/?op=translate&sl=auto&tl=${userlang}&text=${selection}
    Type = SelectionHandler
    Key = 
  ]
]

Type would be SelectionHandler or ExternalCommand (or `ExternalViewer for compatibility with current terminology).

Key is optional because it could also be assigned via

Shortcuts [
  [
    Cmd = CmdTranslateSelectionWithGoogle
    Key = Ctrl + b
  ]
]

The I could upgrade settings file and convert SelectionHandlers and ExternalViewers to Commands section and deprecate them.

from sumatrapdf.

H5820121 avatar H5820121 commented on August 18, 2024

from sumatrapdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.