The companion app to Script Kit
johnlindquist / kitapp Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
The companion app to Script Kit
So I was browsing around the Electron-builder repo which you use to build the app of Script Kit and was interested in an Apple Silicon build for Script Kit, as Electron & NodeJS now support native builds for the M1 chip. Early next week I'm getting a M1 Mac Mini and am curious in testing out Script Kit for the new architecture.
From this pinned issue on electron-builder: electron-userland/electron-builder#5689, it looks like they support both M1 specific builds as well as universal builds which have a single package for both architectures. I would definitely be interested in pulling down a development branch of Script Kit and trying to get a functional build.
Is there anything important I should keep an eye on or things to watch out for when trying to build it as a native M1 app that is dependent on the architecture other than telling Electron to build for ARM & having the install-node.sh
script in the kit repo grab either a universal or ARM build of Node?
I was trying to build kitapp locally on linux (ubuntu) and it was not straight forward. After tweakig certain things reached to a place where getting below message:
Error: Cannot find module '@johnlindquist/kit/cjs/enum'
Require stack:
Is there any guide, which can help me setup scriptkit locally?
Everything works great in dev, but after I build, the app silently breaks. I think it's from trying to load the typescript worker, but I'm lost.
Btw, here's the relevant "vite" branch and "editor.tsx" file:
https://github.com/johnlindquist/kitapp/blob/vite/src/components/editor.tsx#L25
I'm guessing it's something I'd have to change in my "vite.config.ts", but I've tried everything I can think of and I'm lost:
https://github.com/johnlindquist/kitapp/blob/vite/vite.config.ts
Here's a video showing the bug in the production build:
https://youtu.be/Lmusf_1stsQ
Here's a production build from the "vite" branch you should be able to try it on:
https://github.com/johnlindquist/kitapp/releases/tag/v1.41.96
master
branchDEBUG_PROD=true yarn build && yarn start
While using the official 1.11.1
package with the system keymap set to dvorak after installation hitting cmd+;
should bring up Kit.app (according to the message after installation).
Additionally when changing the app shortcut via Kit.app hitting cmd+;
should set the shortcut to cmd+;
.
When the keymap is set to Dvorak Kit.app does not open with cmd+;
after installation (it opens with cmd+z
: the character which would be on the correct key if the keymap were QWERTY). Nor does it open with cmd+;
if the shortcut is set via Kit.app by hitting cmd+;
(likewise though the GUI shows the character character, the actual key that gets set is the one which would have that character in QWERTY).
Below all Hit
commands mean "hit the key with this character on your keyboard" and assume you've got a QWERTY keyboard.
cmd+z
cmd+z
Change App Shortcut
cmd+z
Run Script
Change App Shortcut
cmd+/
T
for yes.cmd+/
cmd+z
cmd+z
I haven't validated this, BUT: I'm guessing when you hit the keys to change the shortcut while in Dvorak mode it'll show you the character on the QWERTY key. Having installed with Dvorak it shows the correct Dvorak character. Even when I switch the keymap to QWERTY (so the key map appears to be static from install).
I haven't dug through the code, but it appears that there's a "character to key code" map somewhere that assumes a QWERTY keymap.
This was extremely confusing at first. The dialog after install actually says that cmd+;
is the shortcut to open the app, but hitting that didn't do anything (though cmd+z
seemed like a sane launch sequence for a QWERTY keymap). It wasn't until I thought about improper key mapping that I tried hitting cmd+/
that I realized the problem.
Now to change the shortcut I have to keep in mind that I need to hit the character for the key that would be in the proper place if I were using a QWERTY keyboard to actually get the proper key set (or I could switch the keymap to QWERTY, then hit the key combo I want).
Keywords: vi mode, vim
It would be great if us Vim enthusiasts could operate Kit without our fingers ever leaving the home row.
As a first step, I'd suggest an optional keymap where the up/down arrow keys are aliased to hotkeys like ${cmd}+J and ${cmd}+K.
A Vim mode for the Monaco editor and the Chat interface would be great. If we could find a way to make selection/insert modes work for regular prompts, that would be absolute bliss.
If we make the keymap optional, it might make some user-defined shortcuts work for some people, but once they share their scripts with others, those might conflict with the Vi mode keybindings.
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.