I am still experimenting with the settings (to go back and forward between really good and extremely good), but this pluging makes all the difference in the world. Kudo’s to you.
Thanks @Paul_Danyliuk for the inspiration and thanks to @Math_24 for enhancing this idea.
I had a little time today and decided to update my extension quite a lot
Meet the new features:
RESIZE & DRAG
Double-click on the header to maximize/restore
FOLDING!!!
Guides for nested code! (saw this in @Math_24’s plugin and slapped myself on the face — how did I not think of that?)
Long lines don’t wrap anymore
Resize or hide the hints/documentation panel (also, it’s opinionatedly always on the right side now) — double-click or double-press CMD/CTRL to toggle it.
Clicking outside the dialog doesn’t close it but makes it semi-transparent and lets you SCROLL the underlying doc, if you need to examine it without leaving your formula flow!
Also fixed the position of the X button because the way it was misaligned drove me nuts.
@joost_mineur take a look at my updated one it makes the window free floating (resizable on the bottom right corner only though; didn’t do anything sophisticated but used a built-in browser behavior) and also lets you ‘dim’ the editor to get the focus onto the underlying doc (you can scroll through your page).
No settings window, but it’s really not needed here IMO. Position and size is now draggable; guides and nowrap are always on (opinionated; might make configurable later); the side panel is also resizable or hideable (both by double-click on the handle and by double-pressing Ctrl / Cmd). I didn’t add theming or custom fonts, but given how the formula font is different in Superhuman Docs, might add that setting in the future to revert back the ‘old’ one (dark mode will apply when the whole Coda is set to dark mode)
Hello @Paul_Danyliuk,
This is a really nice extension - I just installed it and gave it a first spin and I like what I see.
I had to look for the bottom right handle - took me a little while to find it, but once you know…you know.
I think the nowrap should be optional - on small screens it might be a bit of a nuisance to have to split up your code-lines manually. So far, it works for me, but I think I had some very ling code lines in the past (were wrapping was a blessing and a pain at the same time), so an option to turn in on/off would be nice (preferably a shortcut keystroke).
The transparency is also really helpful, the double click to hide the sidepanel is wonderful.
Thank you very much for spending the time to build this major improvement.
Greetings,
Joost
Thanks! I’ll probably add some sort of a quick settings popup in the next iteration where one could toggle wrap/unwrap and some other things. Stay tuned!
UPD: Implemented a command pallette that’s accessible by a Cmd/Ctrl + Shift + A shortcut and is keyboard-navigatable. The extension is again in review, but last time it took only a day to verify. More commands TBA (e.g. I’d really love to overwrite Coda’s stock “auto-format” with my code style flavor that’s more compact). Also feel free to add suggestions.
P.S. @joost_mineur you can also hide/show the side panel by rapidly double-pressing Ctrl or Cmd (similar hotkey to the one in Coda for showing and hiding the formatting popup)
P.P.S. In the v1.1.1 (find here until it’s published) I also added the setting to restore the old Ctrl/Cmd+A functionality to actually select the whole formula, not just a single line.