Skip to content

Port to Linux #19

@i8degrees

Description

@i8degrees

Hi there, @ttscoff

We spoke ever so briefly the other week via email. You introduced me to this wonderful piece of software after I asked about https://fuckyeahmarkdown.com. So, it took me a few days to get around to installing Swift on my Linux workstation and seeing what would happen, and I am very happy to say that I was able to get it up and running with very little work.

I have forked this repository at https://github.com/syn-net/gather-cli and once I feel satisfied with a proper solution to replacing the missing bits of code, I will make a pull request and see if you are interested in merging my work upstream.

In short, NSWorkspace and NSPasteboard are the only two missing classes that I need to come up with a solution for. Being a complete newbie to the Swift language, it may take me some time to figure out how best to implement copy and paste in a cross-platform manner. Honestly, I was shocked as hell to see the software in action after simply commenting out the usage of the two classes. I did not realize yet that NSWorkspace is a class that must be used for obtaining access to the clipboard of other programs. (If I even understand that correctly?)

I have found a snippet of code for how to execute shell commands in Swift. I am thinking that maybe I can use xclip xsel on Linux to serve the same functionality that NSPasteboard offers. More challenging perhaps will be how to architect a Swift class out of it, as Objective-C was never my thing. I am sure willing to try, though! I cannot stress just how invaluable your Markdown tools have been to my life.

Thanks,
Jeff

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions