Got it. I noticed that mention in the documentation after I saw your email. I also realized that the filename needs to be URL encoded which makes sense since it's a URL. Duh.
So this works:
% open 'x-marked://open/file=/Users/tim/Downloads/foo%20bar.md'
I'm running this from a shell script, and I'd like to view that file with one of my custom styles applied to it. The style is called "Wheel of Life" and it appears in the Marked style menu. I can apply it manually in the interface with no problems, so I know that much works. The full path to that stylesheet is
/Users/tim/Development/alg-data-analysis/resources/Wheel of Life.css
I've tried a bunch of different permutations of the x-marked://style... calls, but I can't get anything to work. In fact, what I've been trying sends the Marked window to the background without doing anything to the style.
By the way, I absolutely love that this tool (Marked) is so hackable like this. I'm doing some data analysis in R, replacing some placeholder text with sed, and opening the resulting markdown file in Marked so I can generate a print quality PDF all from a shell script. So cool.
Are you still in Winona? I think I told you once that my in-laws are friends of your parents. My wife (Carlyn) and sister-in-law (Robin) remember you from back in the day at the Pleasant Valley youth group. They used to visit their grandparents (Carl and Louise Stallknecht) in the summers. Once things open up a bit more, I'd be happy to buy you a coffee sometime when we're visiting.
Brett on 25 Mar, 2021 02:58 PM
Sounds great. I have foggy memories of my church days, but I would
probably need more context to actually remember anyone other than the
girl I had a huge crush on. Who was not your wife. Her name was Abby :).
It's a small world for sure. Your parents are actually planning to visit Robin in Montana this summer. (Carlyn and Robin's last name was Reinert back then. I can't remember how old they are compared to you, but they also have a younger sister named Mandy who was around too.)