2

Example:

The content of my book is stored in book.md. I want to write my book in Typora.io.

The content of my presentation is stored in presentation.md. I want to work on my presentation in Ghostwriter.

2

You could call them from the terminal and make an alias for each command...

/path/to/typora /path/to/book.md & disown
/path/to/ghostwriter /path/to/presentation.md & disown

(if typora and ghostwriter are in your PATH, you can just use typora /path/to/book.md etc)

if you like, discard any output

/path/to/typora /path/to/book.md >/dev/null 2>&1 & disown

make an alias in ~/.bashrc

alias edit-book='/path/to/typora /path/to/book.md >/dev/null 2>&1 & disown'

And one for the presentation

alias edit-present='/path/to/ghostwriter /path/to/presentation.md >/dev/null 2>&1 & disown'
5
  • Do you have a solution for opening these files from the Unity Dash? – orschiro Oct 20 '16 at 9:39
  • @RobertOrzanna possibly - you can make a launcher with the command. I use MATE so I can enter mate-desktop-item-edit ~/Desktop --create-new in a terminal to create a new launcher - you can try replacing mate with gnome. In the launcher dialog, put you desired name and in the command field /path/to/desired/program /path/to/desired/file then choose an icon and when the launcher appears drag it onto the panel? If this works I will add to my answer. Works for me in MATE... – Zanna Oct 20 '16 at 9:52
  • I see. I was hoping for a more generic solution. Imagine you would want to to this for a number of files. Creating launchers becomes cumbersome. I hoped there was a more elegant solution. – orschiro Oct 20 '16 at 13:04
  • Well... @RobertOrzanna maybe there is, and I'm just lacking imagination and knowledge about setting default program for a specific file rather than for a file type – Zanna Oct 20 '16 at 13:30
  • Maybe something to think about for the future of Ubuntu. :-) – orschiro Oct 21 '16 at 5:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.