Fork me on GitHub
#squint
<
2023-12-10
>
borkdude12:12:12

If you enable github pages for your repo, we should be able to see it live in your repo

πŸ‘ 1
borkdude12:12:49

hahaha awesome

πŸ™ 1
borkdude12:12:35

PR welcome with some of these changes in so far they don't affect the playground functionality

borkdude12:12:57

I like the darkmode

refset12:12:46

cool, yeah the darkmode was my initial objective, John was just a bonus

refset12:12:18

are you thinking a theme selector? or a bi/tri-state dark mode toggle?

borkdude12:12:44

darkmode by default + switch could be nice, but only if you feel like doing it, don't feel pressured

πŸ‘ 1
refset12:12:36

I think a darkmode definitely feels more advent-y πŸ˜‰

refset12:12:05

I will see if I get time later today, but anyone else should also feel free to try / beat me to it(!)

borkdude12:12:36

styling is not my department, take your time :)

☺️ 1
pez12:12:27

Awesomeness

Tomas Brejla20:12:42

It's beautiful πŸ™‚. There's only thing that doesn't work for me both on linux and windows. It's the (rather uncommon) Win+enter shortcut. On linux, that shortcut is interfering with pop shell's (pop os) tiling extensions. On windows (10 I believe, with pretty much no customizations), it just doesn't seem to work. Would perhaps a bit more standard Ctrl+enter work?

πŸ™ 1
borkdude20:12:33

@U01LFP3LA6P Execute this in your browser console and it switches to Ctrl:

localStorage.setItem("editor.modifier", "Ctrl")

Tomas Brejla20:12:14

+ reload the page works like a charm on linux

borkdude20:12:14

ok, there should probably be some UI thing for it

borkdude20:12:21

I don't know what is the best way to add advanced options without cluttering the UI

borkdude20:12:46

That shows how to modify settings through code

😎 1
refset13:12:34

the "evaluate individual expression" combo in the playground doesn't work by default because repl is false-y when there's no url param (IIUC), could adding || true here be problematic for some reason? https://github.com/refset/squint/commit/2e1c2e836882af382a6aeed3ce886924f504e017#diff-0eb547304658805aad788d320f10bf1f292797b5e6d745a3bf617584da017051R176

borkdude13:12:56

change it to:

JSON.parse(urlParams.get('repl')) !== 'false'
maybe

borkdude13:12:05

and ensure that it can be switched off

πŸ‘ 1