Skip to content

Commit

Permalink
Merge branch 'release/v0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
gscatto committed Apr 16, 2020
2 parents 232dd02 + eda31c7 commit 12a0462
Show file tree
Hide file tree
Showing 6 changed files with 1,320 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Freeplane's map backup files
*.mm.bak
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Freeplane "Desktop Actions" Addon

This add-on provides a script to open or browse files, directories and URIs using the [java.awt.Desktop](https://docs.oracle.com/javase/8/docs/api/java/awt/Desktop.html) class: it looks for the associated application registered on the current platform, and launch it to handle the resource.

## The "Open or browse resource.." action

First, it tries to resolve the text contained in the selected node to an _URI_ resource or a _path_ (be it an _absolute_ or _relative_ referring to a _file_ or a _directory_).

For example, consider the following directory tree:

```
svu.mm
theme.mp3
/images
benson.jpg
stabler.jpg
```

Then, the following scenarios apply for the `svu.mm` map:

- Opening a node containing the text `images/benson.jpg` or `images/stabler.jpg` launches the default image viewer for our viewing pleasure.
- Opening a node containing the text `theme.mp3` instead launches the default media player which plays that audio file, recommended.
- Opening a node containing the text `https://en.wikipedia.org/wiki/Law_%26_Order:_Special_Victims_Unit` launches the default browser and displays the page.
Loading

0 comments on commit 12a0462

Please sign in to comment.