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

Open file's directory in iTerm 2 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified open_in_iterm2.alfredworkflow
Binary file not shown.
6 changes: 3 additions & 3 deletions src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@
<key>config</key>
<dict>
<key>applescript</key>
<string>on alfred_script(q)tell application "iTerm"
<string>on alfred_script(q)
tell application "iTerm"
make new terminal
tell the current terminal
activate current session
launch session "Default Session"
tell the last session
write text "cd " &amp; q &amp; "; clear; pwd"
write text "if [ -d '" &amp; q &amp; "' ] ; then cd " &amp; q &amp; "; clear; pwd; else cd $(dirname '" &amp; q &amp; "' ); clear; ls '" &amp; q &amp; "'; fi"
end tell
end tell
end tell
Expand All @@ -62,7 +63,6 @@ end alfred_script</string>
<false/>
<key>filetypes</key>
<array>
<string>public.folder</string>
</array>
<key>name</key>
<string>Open in iTerm2</string>
Expand Down