alexchiri / format-sql-alfred-workflow Goto Github PK
View Code? Open in Web Editor NEWAn Alfred app workflow that takes an SQL query from the clipboard and formats it.
License: MIT License
An Alfred app workflow that takes an SQL query from the clipboard and formats it.
License: MIT License
[ERROR: input.scriptfilter] Code 1: /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- alfred (LoadError)
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from ./main.rb:5:in `<main>'
Hi, formatSql stopped working in Sierra, here is a Sample log. Any ideas?
E, [2016-10-10 16:34:24 #56032] ERROR -- com.alexchiri.alfred2-format-sql-ruby: A fatal error has occurred. You may seek help in the Alfred supporting site, forum or raise an issue in the bug tracking site.
#<JSON::ParserError: 757: unexpected token at '<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/1.6.2 (Ubuntu)</center>
</body>
</html>
'>
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:155:in `parse'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/json/common.rb:155:in `parse'
./main.rb:41:in `block in <main>'
/Users/pain/Dropbox/Library/Alfred/Alfred.alfredpreferences/workflows/user.workflow.AA9F76F1-6373-4C75-BE5F-49319924B5E4/bundle/ruby/2.0.0/gems/alfred-workflow-2.0.5/lib/alfred.rb:82:in `with_friendly_error'
./main.rb:15:in `<main>'
This works great! But is there any possibility of getting a "copy to clipboard" behavior, instead of only pasting to the active app? Sometimes I would rather, when the API sends back formatted SQL, have that formatted SQL automatically copied to clipboard (replacing unformatted SQL)... so I can paste it myself somewhere.
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.