macdown icon indicating copy to clipboard operation
macdown copied to clipboard

Using `macdown` to open existing file from shell results in empty window

Open mikeokner opened this issue 10 years ago • 4 comments

Installed with homebrew brew cask install macdown which pulled v0.6. Mac OS X 10.11.3 El Capitan.

  • If I double click a .md file or open it with File > Open within MacDown.app then it works fine and loads the contents of the file.
  • If I open a file using macdown filename.md on a shell and MacDown.app is already running it works fine and loads the contents of the file.
  • If I open a file using macdown filename.md and MacDown.app isn't already running, it opens an empty window with the dot in the close box indicating there are unsaved edits. When I close the window without making any edits of my own, it asks me if I want to save the changes made to filename.md.

mikeokner avatar Apr 20 '16 16:04 mikeokner

Gonna just tag onto this issue and note that Macdown also crashes completely for me if I open a new file from the shell and go to save it.

This is completely annoying as I just lost a significant amount of work.

ryanmcgrath avatar Apr 21 '16 09:04 ryanmcgrath

Seems that some tricks I used were broken by the latest OS X update. Thanks for reporting.

uranusjr avatar Apr 27 '16 06:04 uranusjr

Meanwhile if you have the binary installed from the website, it'll check for updates and you can always do something like:

alias macdown='open -a MacDown.app'

for the CLI functionality you had with the brew install.

Jmuccigr avatar Apr 27 '16 12:04 Jmuccigr

This seems to be a duplicate of #612 and should now be fixed in v0.6.2. Guys, would you like to confirm it?

FranklinYu avatar Oct 09 '16 00:10 FranklinYu