Bike format Goals
Bike’s native file format is a restricted set of HTML, basically just a nested list.
If you open a .bike file in your web browser you will see a nicely formatted list. As nice as that is, you’ll also likely notice that it doesn’t really look like a Bike outline. It’s functional, but not particularly nice.
I think with the right CSS it could be a near pixel perfect match. I also think with a little javascript sprinkled in you could also be able to expand and collapse items.
With a bunch more javascript you could even write a full outline editor, open a Bike file in browser and it could edit itself (saving wouldn’t work, but copy and paste to export).
That stylesheet and script could be put on a CDN and then when Bike saves it would add links to that stylesheet and script. Bike files would gain a lot of cross platform power, but they wouldn’t grow in size.
This idea excites me, but I need to be working on more fundamental Bike app features. I encourage anyone with the skills to take this project on. If you get something nice I’ll start referencing it when Bike saves files. I can’t pay for this, but I think a made by
link added by the script or CSS would be appropriate and maybe useful to you.
- Stylesheet to make
.bike
file look like a real Bike outline when viewed in web browser - Javascript to make basic navigation of that outline possible (expand/collapse) for starters
- Javascript editor to make editing possible.
These don’t all need to be done to make it useful, just stylesheet would be great.
I have a project that could be a resource for this. I think this project as a whole is a lot more complicated then needed, but maybe can grab some ideas. If you want to try it I think it works somewhat OK on Atom 1.14.4, not on later versions.
This might be a better resource: Tree views in CSS