Skip to content

Commit f51b14d

Browse files
committed
Initial release
0 parents  commit f51b14d

File tree

13 files changed

+365
-0
lines changed

13 files changed

+365
-0
lines changed

.bundle/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
BUNDLE_PATH: "vendor/bundle"

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/vendor
2+
Gemfile.lock
3+
lib/tableplus/
4+
*.alfredworkflow

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 2.6.10

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
9+
## [1.0.0] - 2024-03-25
10+
- [RELEASE] Initial release.
11+
- [RELEASE] Initial release of 'tableplus' gem version 0.1.0

Gemfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
source 'https://rubygems.org'
2+
3+
gem 'rake'
4+
gem 'tableplus', git: 'https://github.com/SeanSith/ruby-tableplus', branch: 'main'

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT License
2+
3+
Copyright (c) 2024 Sean Smith
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Alfred Workflow for TablePlus
2+
3+
An Alfred [Workflow](https://www.alfredapp.com/help/workflows/) for executing connections to databases with [TablePlus](https://tableplus.com).
4+
5+
## Requirements
6+
- Ruby >= 2.x with Bundler (macOS system installed is preferred)
7+
- TablePlus
8+
- [Direct from website](https://tableplus.com)
9+
- [Homebrew](https://brew.sh)
10+
- [SetApp](https://setapp.com)
11+
12+
## Configuration
13+
14+
All custom configuration is handled via Alfred Workflow Configuration or [Environment Variables](https://www.alfredapp.com/help/workflows/advanced/variables/#environment).
15+
16+
### Custom Configuration Path
17+
18+
- [TODO] `TABLEPLUS_SHARED_CONNECTION_PATH` - Filesystem path to TablePlus Connections and ConnectionGroups Plist files
19+
20+
## Development
21+
22+
To update the Alfred package metadata and create a `.alfredworkflow` file, run `bundle exec rake alfred:release`

Rakefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require 'tableplus'
2+
require_relative './lib/alfred/tableplus'
3+
require_relative './lib/alfred/tasks/alfred'

icon.png

99.6 KB
Loading

info.plist

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>bundleid</key>
6+
<string>com.seansith.tableplus</string>
7+
<key>category</key>
8+
<string>Productivity</string>
9+
<key>connections</key>
10+
<dict>
11+
<key>253BC7E9-2285-4E65-94D8-4FF069AB33BA</key>
12+
<array>
13+
<dict>
14+
<key>destinationuid</key>
15+
<string>72583AE6-64B3-47D1-BFF7-FFC88D6A2097</string>
16+
<key>modifiers</key>
17+
<integer>0</integer>
18+
<key>modifiersubtext</key>
19+
<string/>
20+
<key>vitoclose</key>
21+
<false/>
22+
</dict>
23+
</array>
24+
</dict>
25+
<key>createdby</key>
26+
<string>Sean Smith</string>
27+
<key>description</key>
28+
<string>Quick access to connections in TablePlus</string>
29+
<key>disabled</key>
30+
<false/>
31+
<key>name</key>
32+
<string>TablePlus</string>
33+
<key>objects</key>
34+
<array>
35+
<dict>
36+
<key>config</key>
37+
<dict>
38+
<key>alfredfiltersresults</key>
39+
<true/>
40+
<key>alfredfiltersresultsmatchmode</key>
41+
<integer>0</integer>
42+
<key>argumenttreatemptyqueryasnil</key>
43+
<true/>
44+
<key>argumenttrimmode</key>
45+
<integer>0</integer>
46+
<key>argumenttype</key>
47+
<integer>1</integer>
48+
<key>escaping</key>
49+
<integer>102</integer>
50+
<key>keyword</key>
51+
<string>tp</string>
52+
<key>queuedelaycustom</key>
53+
<integer>3</integer>
54+
<key>queuedelayimmediatelyinitially</key>
55+
<true/>
56+
<key>queuedelaymode</key>
57+
<integer>0</integer>
58+
<key>queuemode</key>
59+
<integer>1</integer>
60+
<key>runningsubtext</key>
61+
<string>Searching TablePlus for &quot;{query}&quot;...</string>
62+
<key>script</key>
63+
<string>/usr/bin/bundle install &gt;/dev/null 2&gt;&amp;1
64+
/usr/bin/bundle exec ./workflow.rb</string>
65+
<key>scriptargtype</key>
66+
<integer>1</integer>
67+
<key>scriptfile</key>
68+
<string/>
69+
<key>subtext</key>
70+
<string>Search TablePlus connections</string>
71+
<key>title</key>
72+
<string/>
73+
<key>type</key>
74+
<integer>0</integer>
75+
<key>withspace</key>
76+
<true/>
77+
</dict>
78+
<key>type</key>
79+
<string>alfred.workflow.input.scriptfilter</string>
80+
<key>uid</key>
81+
<string>253BC7E9-2285-4E65-94D8-4FF069AB33BA</string>
82+
<key>version</key>
83+
<integer>3</integer>
84+
</dict>
85+
<dict>
86+
<key>config</key>
87+
<dict>
88+
<key>concurrently</key>
89+
<false/>
90+
<key>escaping</key>
91+
<integer>102</integer>
92+
<key>script</key>
93+
<string>open $1</string>
94+
<key>scriptargtype</key>
95+
<integer>1</integer>
96+
<key>scriptfile</key>
97+
<string/>
98+
<key>type</key>
99+
<integer>0</integer>
100+
</dict>
101+
<key>type</key>
102+
<string>alfred.workflow.action.script</string>
103+
<key>uid</key>
104+
<string>72583AE6-64B3-47D1-BFF7-FFC88D6A2097</string>
105+
<key>version</key>
106+
<integer>2</integer>
107+
</dict>
108+
</array>
109+
<key>readme</key>
110+
<string># Alfred Workflow for TablePlus
111+
112+
An Alfred [Workflow](https://www.alfredapp.com/help/workflows/) for executing connections to databases with [TablePlus](https://tableplus.com).
113+
114+
## Requirements
115+
- Ruby &gt;= 2.x with Bundler (macOS system installed is preferred)
116+
- TablePlus
117+
- [Direct from website](https://tableplus.com)
118+
- [Homebrew](https://brew.sh)
119+
- [SetApp](https://setapp.com)
120+
121+
## Configuration
122+
123+
All custom configuration is handled via Alfred Workflow Configuration or [Environment Variables](https://www.alfredapp.com/help/workflows/advanced/variables/#environment).
124+
125+
### Custom Configuration Path
126+
127+
- [TODO] `TABLEPLUS_SHARED_CONNECTION_PATH` - Filesystem path to TablePlus Connections and ConnectionGroups Plist files
128+
129+
## Development
130+
131+
To update the Alfred package metadata and create a `.alfredworkflow` file, run `bundle exec rake alfred:release`
132+
</string>
133+
<key>uidata</key>
134+
<dict>
135+
<key>253BC7E9-2285-4E65-94D8-4FF069AB33BA</key>
136+
<dict>
137+
<key>xpos</key>
138+
<real>175.0</real>
139+
<key>ypos</key>
140+
<real>115.0</real>
141+
</dict>
142+
<key>72583AE6-64B3-47D1-BFF7-FFC88D6A2097</key>
143+
<dict>
144+
<key>xpos</key>
145+
<real>400.0</real>
146+
<key>ypos</key>
147+
<real>125.0</real>
148+
</dict>
149+
</dict>
150+
<key>userconfigurationconfig</key>
151+
<array>
152+
<dict>
153+
<key>config</key>
154+
<dict>
155+
<key>default</key>
156+
<string/>
157+
<key>filtermode</key>
158+
<integer>1</integer>
159+
<key>placeholder</key>
160+
<string/>
161+
<key>required</key>
162+
<false/>
163+
</dict>
164+
<key>description</key>
165+
<string>Filesystem path to TablePlus Connections and ConnectionGroups Plist files</string>
166+
<key>label</key>
167+
<string>Path to TablePlus Shared Connections</string>
168+
<key>type</key>
169+
<string>filepicker</string>
170+
<key>variable</key>
171+
<string>TABLEPLUS_SHARED_CONNECTION_PATH</string>
172+
</dict>
173+
</array>
174+
<key>variablesdontexport</key>
175+
<array/>
176+
<key>version</key>
177+
<string>1.0.0</string>
178+
<key>webaddress</key>
179+
<string>https://github.com/SeanSith/alfred-workflow-tableplus</string>
180+
</dict>
181+
</plist>

0 commit comments

Comments
 (0)