mykyta-shyrin / cheatsheet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command to open cheat sheet for a single group

alienbogart opened this issue · comments

Is there a way to pass a parameter for cheatsheet-show to only display a certain group?

Also: when showing all groups, it would be nice to arrange them in columns, making better use of horizontal screen space.

It would be very useful. In my use case, to display a subset of keys I want to learn when Emacs starts, which would be changing (alas "Tip of the day").
This code inserts the "Evil" group in the current buffer (as tested on my scratch buffer):

(with-current-buffer (insert (cheatsheet--format-group (list :name 'Evil :cheats (cheatsheet--get-group 'Evil)))))