29 Commits
Author SHA1 Message Date
Jean Jourdain dc64911687 Added some line breaks to try to keep lines under 80 characters long 2018-06-02 10:30:14 +02:00
Jean Jourdain 33684e51b0 x-macdown URL scheme implementation
Open a file from a browser with url of the form "x-macdown://open?url=file:///path/to/a/file&line=123&column=45"

FIXME: Could not figure out how to place the insertion point at a given line and column.
2018-06-01 15:41:20 +02:00
Andre Mas e290ad3e14 Fixes #893 Added 'contribute' menu item 2017-12-05 17:50:55 -05:00
Tzu-ping Chung ec3c641539 Merge branch '280-create-linked-file-bug' 2017-02-20 21:15:17 +08:00
Bruno Philipe cd4228c248 When opening new file, makes sure it is created 2017-02-20 21:02:25 +08:00
Tzu-ping Chung 6192294908 UI for CLI utility installation
Implemented logic for CLI installation from the GUI app.

A preference pane is added. The pane detects whether the user has
something installed that looks like the MacDown CLI utility by checking
common installtion locations, e.g. Homebrew.

If the util is not detected to be installed, the user can click a
button to install it. For now the only option is to install it to
/usr/local/bin/macdown.
2017-02-18 22:27:15 +08:00
Niklas Berglund 5394aeb3aa Disable WebView's cache
Fix #746 image cache issue
2017-02-06 21:32:46 +08:00
Niklas Berglund b53d38ea8b Fix typo
prefereces => preferences
2017-02-03 00:54:21 +08:00
Niklas Berglund f7635fda79 Support for piping text to macdown utility
Text piped to the macdown shell utility is inserted into a new untitled
document
2017-02-03 00:44:24 +08:00
Tzu-ping Chung 27ec6bc331 Supress new doc when launching with pending files
Fix #697
2016-11-10 22:35:31 +08:00
Tzu-ping Chung fb20965bcd Refactor filesToOpen into MPPreferences 2016-11-10 22:29:51 +08:00
Tzu-ping Chung eb79defa9a Refactor file-launching method in cmd
Previously the cmd util uses different strategies to open files based
on whether MacDown is currently running. This results in various
problems, the most prominent being that NSWorkspace cannot be used
to pass a path for files that do not exist.

This change unifies the opening strategy to always be based on
cross-application NSUserDefaults instead, and moves the open file
check from during application launch to application activation.
This makes the implementation simpler, and also solves the problem
aforementioned.

Fix #672.
2016-11-06 04:50:16 +08:00
Tzu-ping Chung 17a212619f Use matching pref implementation on GUI and cmd
This avoids any error we write to the wrong domain.
2016-11-04 18:45:15 +08:00
Tzu-ping Chung 8e1fb45fc9 Fix file URL assembling when from preferences 2016-10-08 23:09:00 +08:00
Tzu-ping Chung bda57fd318 Fix warnings in Xcode 7 2015-09-28 19:08:32 +08:00
Tzu-ping Chung 0c2c077353 Avoid re-showing treats 2015-02-15 12:04:11 +08:00
Tzu-ping Chung c785d67f62 Generalize treats 2015-02-15 01:20:32 +08:00
Tzu-ping Chung c40aa9ebaf A special treat for the special :) 2015-02-13 12:49:33 +08:00
Tzu-ping Chung 8854187d6c Extract bundle file opening to function 2015-02-13 12:47:13 +08:00
Tzu-ping Chung df0741d276 Auto-create target file if not existed 2015-01-25 01:05:18 +08:00
Tzu-ping Chung 0c289a747f Add switch to toggle document creation on launch
Fix #58.
2014-12-12 12:02:11 +08:00
Tzu-ping Chung 7c6af34dc2 Set draft state first to silence warning 2014-11-22 22:01:50 +08:00
Tzu-ping Chung 0b81296656 Implement better file-opening utility
This implements a preference-based file-opening scheme. When the
CLI utility is run, all file name arguments are resolved to
absolute URLs and stored in a user default key *under the master
Macdown application's namespace*, and then launch MacDown.

Everytime MacDown is launched, it checks the aforementioned user
default key, and open any documents in it, creating non-saved drafts
if necessary (for non-existing documents). This mimics the expected
behaviours for "normal" editors, like VIM, nano, etc.. The user
default key is reset to nil after the documents are opened.

Closed #35.
2014-11-22 22:01:50 +08:00
Tzu-ping Chung a2201ad6f1 Add logic to copy files later added to the project 2014-08-10 16:51:56 +08:00
Tzu-ping Chung 3fd5703270 Add switch between beta and normal update URLs
The URL does not work yet; will need to update server.
Fix #39
2014-07-01 16:17:50 +08:00
Tzu-ping Chung 52cf27287f Add help file to be shown at first launch and on request 2014-06-20 16:12:37 +08:00
Tzu-ping Chung f20c892c12 Add editor styles from Mou 2014-06-16 17:58:44 +08:00
Tzu-ping Chung a0f8ddc047 Add default GitHub style and auto-copy it 2014-06-16 17:37:05 +08:00
Tzu-ping Chung f3b6048806 Move some files around 2014-06-16 17:21:56 +08:00