Smarter layout box search as you type

Scott Kostyshak skostysh at lyx.org
Thu Nov 24 16:04:46 UTC 2022


On Wed, Nov 23, 2022 at 03:20:59PM -0500, Richard Kimberly Heck wrote:
> On 11/23/22 12:57, Scott Kostyshak wrote:
> > In my Beamer document, if I want to insert a Block layout, I type
> > Alt + p, space, and then type "Block". This gives three results:
> > "Block", "ExampleBlock", and "AlertBlock". "AlertBlock" is highlighted,
> > so I press <Up> <Up> to get to "Block".
> > 
> > Is there a faster way by default than the above key combinations to
> > insert a "Block" environment? Perhaps I should make a shortcut, or a
> > custom menu item.
> > 
> > I use "Block" much more often than "AlertBlock" and "ExampleBlock", so
> > it would be nice if "Block" were the first one highlighted. Would it
> > make sense for the search to highlight the one that is most often used
> > in the document?  i.e., LyX could query my .lyx file and see that I use
> > "Block" 10 times and "AlertBlock" 2 times, and would select "Block"?
> 
> It would be easy to make such a list during the updateBuffer routine, which
> is really very fast.

Good to know! In any case, I probably won't work on this for a while but
it's good to have an idea of where to start.

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20221124/a5410cf6/attachment.asc>


More information about the lyx-devel mailing list