franzheidl / alfred-workflows Goto Github PK
View Code? Open in Web Editor NEWWorkflows for Alfred
License: MIT License
Workflows for Alfred
License: MIT License
I'm not sure if it's the recent alfred update, or something with yosemite, or something else, but all of a sudden the Atom workflow is no longer finding project folders. Everything worked fine for several months, and suddenly after updating both Yosemite and alfred (and many other things including Atom) recently, my folders are no longer being returned in queries. Any ideas?
I'd recommend changing the shortcut to subl over ows for consistency (as most devs I know use a symlink named subl to launch files/folders in Sublime Text 2).
Is there a way to tie this in with alfred's terminal preference? If not, probably just an alternative applescript with iTerm support.
you know the dril
Hi,
The "Open with Visual Studio Code" is seems replace existing window,
It is can open a folder or file in a new window?
thanks
Hi,
Im using the Open with Atom workflow, and have two requests if possible:
Thanks.
for the macvim workflow (I'm hoping for all of them), is it possible to add filename completion? Alfred expands folder and filenames to full name on pressing Tab.
thanks in advance.
Is it possible to add File Action for the Run Terminal Command Here workflow?
Hello, I've incorrectly chosen the SublimeText path (I chose iterm instead ) so now whenever I run the command "Open in Sublime Text" each file is opened in iterm. I've tried to reinstall the script but apparently the settings are kept because they are stored somewhere else.
Any hint?
This is a duplicate of this issue
Fyi for everyone stumbling upon this issue like alexchantastic/alfred-open-with-vscode-workflow#8 with Sublime Text, this is the new Applescript that works so you can fix it in your workflow;
on run
set theQuery to "{query}"
set finderSelection to ""
set theTarget to ""
set defaultTarget to (path to home folder as alias)
-- comment line above and uncomment line below to open desktop instead of user home when there's no selection or open folder in the Finder:
-- set defaultTarget to (path to desktop folder as alias)
if theQuery is "" then
tell application "Finder"
set finderSelection to (get selection)
if length of finderSelection is greater than 0 then
set theTarget to finderSelection
else
try
set theTarget to (folder of the front window as alias)
on error
set theTarget to defaultTarget
end try
end if
tell application "Sublime Text"
open theTarget as alias
end tell
end tell
else
try
set targets to {}
set oldDelimiters to text item delimiters
set text item delimiters to tab
set qArray to every text item of theQuery
set text item delimiters to oldDelimiters
repeat with atarget in qArray
if atarget starts with "~" then
set userHome to POSIX path of (path to home folder)
if userHome ends with "/" then
set userHome to characters 1 thru -2 of userHome as string
end if
try
set atarget to userHome & characters 2 thru -1 of atarget as string
on error
set atarget to userHome
end try
end if
set targetAlias to ((POSIX file atarget) as alias)
set targets to targets & targetAlias
end repeat
set theTarget to targets
tell application "Sublime Text"
open theTarget
end tell
on error
return (atarget as string) & " is not a valid file or folder path."
end try
end if
return theQuery
end run
The filename of "Open with Emacs" workflow is incorrect: https://github.com/franzheidl/alfred-workflows/blob/master/open-with-emacs/src/open-with-textmate-2.applescript
Alfred has a robust search feature. Using the subl command would be much faster and easier if you could search for a folder instead of writing its entire path.
Reported by @JonathanReem on zenorocha/alfred-workflows#37
For example, if I type:
ows ~/Dropbox/Documents
It will open the home directory only. Ideally, this would open the correct directory in Sublime Text.
Cheers! And thanks for your work on this.
Hi, thanks for these great Alfred plugins!!!
If I use vscode plugin when a folder is highlighted, the folder is copied and then Visual Studio code is opened on the copy. Is this an issue with the plugin?
Many thanks for any help.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.