Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added many modifier actions to the workflow #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Added many modifier actions to the workflow #1

wants to merge 1 commit into from

Conversation

nikitavoloboev
Copy link

Here is the .alfredworkflow you can try.

I really love this workflow, thank you for making it. I just wanted to extend it so that you can do many other things with the directory aside from opening it in Finder. You can open it in iTerm in current tab or you can open it in an editor you like or you can even export the workflow to the Desktop.

See if you like it and want to merge it in. 🙂

@jeeftor
Copy link
Owner

jeeftor commented Dec 4, 2017 via email

@jeeftor
Copy link
Owner

jeeftor commented Dec 4, 2017

Do you have you alfred auto-configured to have the terminal open item?

I use this setup so that any "open in terminal" will open in iTerm2 - I'll have to look over your stuff - i really like the export action.

-- This is v0.6 of the custom script for AlfredApp for iTerm 2.9+
-- Please see https://github.com/stuartcryan/custom-iterm-applescripts-for-alfred/
-- for the latest changes.

-- Please note, if you store the iTerm binary in any other location than the Applications Folder
-- please ensure you update the two locations below (in the format of : rather than / for folder dividers)
-- this gets around issues with AppleScript not handling things well if you have two iTerm binaries on your system... which can happen :D

on alfred_script(q)
	if application "iTerm2" is running or application "iTerm" is running then
		run script "
			on run {q}
				tell application \":Applications:iTerm.app\"
					activate
					try
						select first window
						set onlywindow to false
					on error
						create window with default profile
						select first window
						set onlywindow to true
					end try
					tell the first window
						if onlywindow is false then
							create tab with default profile
						end if
						tell current session to write text q
					end tell
				end tell
			end run
		" with parameters {q}
	else
		run script "
			on run {q}
				tell application \":Applications:iTerm.app\"
					activate
					try
						select first window
					on error
						create window with default profile
						select first window
					end try
					tell the first window
						tell current session to write text q
					end tell
				end tell
			end run
		" with parameters {q}
	end if
end alfred_script

@nikitavoloboev
Copy link
Author

I use the exact same thing too:

2017-12-05 at 00 59

It should work for you too I believe. But you can remove it if you want.

@nikitavoloboev
Copy link
Author

nikitavoloboev commented Feb 8, 2018

Perhaps you want to update this workflow to this.

I use it a lot and really love it. What I added was few modifiers to open things in workflow dirs in editors. But the big change is the export of workflow to Desktop. It exports the workflow to Desktop but also copies the version number of workflow to clipboard so you can quickly make a release of it.

I think it's really useful. Hope you consider updating the workflow. I attached the workflow in the link above.

@nikitavoloboev
Copy link
Author

nikitavoloboev commented Feb 26, 2018

Hey @jeeftor

I still think that updating the workflow with my actions would be awesome. Here is the download in case you want to do it. 🙂

@jeeftor
Copy link
Owner

jeeftor commented Feb 27, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants