mono/packages/osrl/documentation/Integration.md
2025-12-30 16:33:03 +01:00

979 B

Integration

Integration: Alt-Tap Salamand - Custom Menus

To use OSRL in custom menus, as follows

  1. install osrl via npm i -g @plastichub/osrl
  2. Register a new custom menu (press F9 on any file)

command : osrl

Arguments : compile --alt=true --debug --source="$(FullName)" --output="&{SRC_DIR}/&{SRC_NAME}.+(osrl)"

Here explained,


compile                                     # compile command
    --alt=true                              # use alternate tokenizer, '&' instead of '$' to prevent collisions with Alt-Tab's own variable designator
    --debug=true                            # be verbose
    --source="$(FullName)"                  # use Alt-Tab's variable for the current selected file
    --output="&{SRC_DIR}/&{SRC_NAME}.md"   # the output destination path