chieffancypants / angular-hotkeys

Configuration-centric keyboard shortcuts for your Angular apps.
http://chieffancypants.github.io/angular-hotkeys/
MIT License
1.68k stars 254 forks source link

Multicolumn cheat sheet #257

Open danmichaelo opened 7 years ago

danmichaelo commented 7 years ago

If I add too many keyboard shortcuts, they won't fit into the cheat sheet, but there is plenty of space horizontally, so it would be nice if the cheat sheet could make use of that space by flowing into multiple columns.

aramando commented 7 years ago

@danmichaelo I would like to see this too. However don't forget you can pass in an alternative Angular template string in config to customise the display of the cheat sheet, and style it into columns with Flexbox or something. This is actually something on my own to do list at the moment.

kroltan commented 6 years ago

You can use some CSS, without touching the template:

.cfp-hotkeys {
    columns: 2;
}

.cfp-hotkeys-title {
    column-span: all;
}

Support is good, with global coverage at 97.8%