-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: o98k-ok <hggend@gmail.com>
- Loading branch information
Showing
3 changed files
with
34 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +0,0 @@ | ||
# Binaries for programs and plugins | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
|
||
# Test binary, built with `go test -c` | ||
*.test | ||
|
||
# Output of the go coverage tool, specifically when used with LiteIDE | ||
*.out | ||
|
||
# Dependency directories (remove the comment below to include it) | ||
# vendor/ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
# STab | ||
Switch Iterm2 tab | ||
|
||
## Introduce | ||
Simple python version for [florianeckerstorfer/alfred-iterm2-tabs](https://github.com/florianeckerstorfer/alfred-iterm2-tabs). | ||
Because php version has terrible cooperation with Alfred | ||
|
||
## Installation | ||
Download [latest](https://github.com/o98k-ok/STab/releases) version, and install it. | ||
|
||
## Acknowledgement | ||
1. Thanks [florianeckerstorfer/alfred-iterm2-tabs](https://github.com/florianeckerstorfer/alfred-iterm2-tabs) | ||
2. [Tabset](https://www.npmjs.com/package/iterm2-tab-set) may help too. | ||
3. [Badges](https://iterm2.com/documentation-badges.html) is amazing too. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import commands | ||
import json | ||
import sys | ||
|
||
|
||
arg = "" | ||
if len(sys.argv) >= 2: | ||
arg = sys.argv[1] | ||
|
||
|
||
res = [] | ||
out = commands.getoutput('./get-tabs.scpt') | ||
for name in out.split(";"): | ||
if name != "" and arg in name: | ||
res.append({"title":name, "subtitle":"", "arg": name}) | ||
|
||
if len(res) == 0: | ||
res.append({"title":"404", "subtitle":"Not Found"}) | ||
|
||
|
||
print(json.dumps({"items":res})) | ||
|