Coder Social home page Coder Social logo

Comments (6)

deanishe avatar deanishe commented on May 30, 2024

Sublime opens the .sublime-project file. It's not the workflow's fault.

The workflow simply asks macOS to open the .sublime-project file in the default application for that filetype.

from alfred-sublime-text.

shreyasminocha avatar shreyasminocha commented on May 30, 2024

I'm probably missing something, but isn't the project supposed to be loaded as it would with ProjectOpen Project...?

from alfred-sublime-text.

deanishe avatar deanishe commented on May 30, 2024

One would think so, yes. But that isn't what Sublime does.

I can't change the behaviour of Sublime Text. You need to ask its developer(s).

from alfred-sublime-text.

andreiborisov avatar andreiborisov commented on May 30, 2024

Hi, @deanishe, I know how to fix it, but it would require user to provide path to Sublime Text.app in workflow settings. Do you want me to do a PR with fix? Because, to be honest, it's pretty annoying to make sure Sublime Text is already running...

from alfred-sublime-text.

deanishe avatar deanishe commented on May 30, 2024

Thanks, @schrodincat, but it's okay. I'm rewriting the workflow in Go, and it now uses the subl command for proper behaviour.

FWIW, you can get the path to an application with AppleScript:

tell application "Finder" to get (POSIX path of (path to application "Sublime Text"))

from alfred-sublime-text.

andreiborisov avatar andreiborisov commented on May 30, 2024

Ok, then.
subl is exactly what I was talking about. I didn’t know how to get the path to it, though, thanks!

Sent with GitHawk

from alfred-sublime-text.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.