Boot Polish is a synchronous, visual web page builder for Bootstrap. It is navigated entirely by keyboard, with key bindings to insert and navigate between nodes.
left
,right
: navigate through lenses\
(hold): hide lensesbackspace
: delete element before lensshift+backspace
: delete all siblingsenter
: insert raw text/HTMLj
: insert jumbotron1
,2
,3
,4
,5
,6
: insert heading (shift
for block heading)p
: insert paragraph (shift
for lead)a
: insert alertw
: insert welll
: insert panelb
: buttons...b t
: insert button toolbarb g
: insert button groupb b
: insert buttonb d
: insert button dropdown (shift
for dropup)
t
: insert tablef
: forms...f f
: insert formf g
: insert form groupf l
: insert labelf i
: insert text inputf d
: insert dropdown/selectf b
: insert input button
All methods used by the keyboard bindings are exposed in the BootPolish
class, which can be used to automate the creation of pages.
var bp = new BootPolish("#root-node");
bp.createHeading("Block Heading", 1, true) // focus moves under the element
.createHeading("Subtitle", 2)
.createParagraph("Some words.")
.createAlert("info") // focus is now inside the alert
.createParagraph("Some raw text.")
.nav(1) // focus is now below the alert
.createParagraph("Some more words.");