Skip to content

Allow CSS and JS editor styles to be symlinked files (for use with iCloud) #537

Closed
@daviddarnes

Description

@daviddarnes

I have a work and home Mac and both of them I have MarkEdit running. I would like to make some slight presentation adjustments using the editor.css and editor.js customisation options, however I'd also like them to sync to my other Mac using iCloud. I've validated that I am able to customise the CSS using the correct file, but when I replace it with a symbolic linked file (so I can keep the original file in an iCloud directory called MarkEdit/Settings) the files are ignored.

I see that other symbolic files are being used so maybe these could accept them as well? Alternative is to just set Documents/Data directory as an iCloud folder, however that will be a bit of a confusing name. If there's an alternate path let me know! Thanks

Activity

cyanzhong

cyanzhong commented on Apr 29, 2024

@cyanzhong
Contributor

Thank you for the feedback. I am not sure if symbolic files are going to work, but I would like to take a look.

daviddarnes

daviddarnes commented on Apr 29, 2024

@daviddarnes
Author

Thanks! If there's another path I would love to know. Very happy editing the presentation using CSS and JS and would just like to utilise existing syncing options (iCloud) to keep the UI consistent across devices

cyanzhong

cyanzhong commented on Apr 30, 2024

@cyanzhong
Contributor

I see what's happening now, we have two issues here:

  • When a path is symlink, we need to find its original content
  • As a sandboxed app, the app only has access to user selected files

For #1, I will make a change to support this scenario. For #2, I will make another change to allow user grant access to an external folder.

cyanzhong

cyanzhong commented on Apr 30, 2024

@cyanzhong
Contributor
daviddarnes

daviddarnes commented on Apr 30, 2024

@daviddarnes
Author

OH wow that was fast, thanks so much @cyanzhong! Looking forward to testing it out 👍🏻

daviddarnes

daviddarnes commented on May 12, 2024

@daviddarnes
Author

Looping back here to say this works exactly as expected. Thanks for adding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Participants

    @daviddarnes@cyanzhong

    Issue actions

      Allow CSS and JS editor styles to be symlinked files (for use with iCloud) · Issue #537 · MarkEdit-app/MarkEdit