Fixed crash when Option-Return in line with spaces
Fixed editor.transaction API to return result of passed closure
Fixed block selection to show selection for all rows, not just ends
Lots of work on styling internals that enables new rounded styles for block selection and blockquote rows. Also refined decoration animations to stay in better sync with text content.
Yeah, just a demo at this point, but Iāve always wondered what it would feel like to highlight the outline structure this way in a full theme. Block selection now gives a somewhat similar effect in the default theme. Highlights the outline structure much more then before I think.
ā+O is a system command that usually splits the line at the cursor but keeps the caret in the original row. In Bike 2.0 it does something strange, it adds a new empty row beneath the current one (without splitting it), and then snaps the cursor to the end of the original row. This seems to work fine in Bike 1.0.
I donāt quite see the difference between ā+Return and ā„+Return. Seems like they do the same thing, which is to trigger New row command?
There are a few reasons that I like them at the moment:
I want to show distinction between text and block mode. They help make it clear that you are in block mode⦠selecting entire rows.
The line border in general makes it possible to have a lighter selection color, while still allowing the selection to be distinct and easily visible.
Maybe most important ⦠not possible in current implementation to have line border, but no internal borders, for row level decorations⦠but even so I think I would still keep them for reason #1
Reserver the right to change my mind at any point!
It is possible to just turn the border lines off (if you have bike-extension-kit installed) by modifying the default bike-style.ts style like this:
They will be different in next release. There is a core cocoa command insertNewlineIgnoringFieldEditor that is trigged by system in both Control+O and Option+Return cases. I had implemented that command as āNew Rowā, but I now see itās generally supposed to work just like insertNewLine in non-field text editors.
In my current option this option looks good too, but I like the lines version a little better.
I still need to revisit all the keybindings for splitting/inserting rows in Bike 2.0, but Iāve at least fixed the above issues for next release.
Not sure whether you are planning this for Bike 2 osascript (or the extension kit ?),
but I do enjoy the document.showTitleBar boolean property in the Bike 1 interface.
FWIW it enables me to toggle a working outline into a zero-distraction form, with even the titlebar hidden (while for example, the working Bike file is positioned full hight in the central 50% of the screen width, and background is hidden by something like the HazeOver app )
Possibly by design, but I noticed myself doing a brief double-take in the Bike 2 (235) View menu options (expecting but not seeing Hide) for the Inspector.
Whereas the Sidebar option toggles:
View > Show Sidebar ā View >HideSidebar
the two toggle states for the Inspector share the same label (Show but no Hide)
I need to think more about showTitleBar. I mostly added that for making screencasts, since it breaks a lot of standard UI. I might add for same purpose in same way again, or I might try to build something similar thatās a little more designed for daily use. Not ready to think much about that yet, but keep letting me know you want it
Itās not so much the cost, but that particular implementation is difficult to make generally useful.
I have been thinking of adding a new button to the menu bar for easier on/off click management of the sidebar/inspector/statusbar. Clicking the button would show a popover. Looking a bit like the popover you see when you mouse over the green button in standard windows now.
Maybe some sort of focus toggle could show in that popover. It wouldnāt be quite āhide entire menu barā, but it could tweek things, such as make it transparent, hide most of the buttons, etc.
Havenāt started any implementation, but thatās what I think I would like instead. If I donāt get to it, Iāll probably add back the script property, might still add it back, but not for next release anyway