texmacs-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Texmacs-dev] Displaying shortcuts to hidden actions


From: Miguel de Benito Delgado
Subject: Re: [Texmacs-dev] Displaying shortcuts to hidden actions
Date: Fri, 15 Jul 2011 23:28:26 +0200

Another problem: executing search-next seems to exit search-mode: after clicking the item for the first time,  it is again greyed out. The solution is to call instead search-button-next which is just a wrapper for edit_replace_rep::search_button_next() which in turn sets the input mode and performs a edit_replace_rep::search_next(). A direct call in scheme to search-next would end the search after one step. Why the mode is reset, I have no idea.
________________
Miguel de  Benito.


On Fri, Jul 15, 2011 at 22:30, Miguel de Benito Delgado <address@hidden> wrote:
Hi,

  working on bug 33131, I've added a "Find next match" item to the "Edit" menu. By default it's greyed out and it's enabled while searching in the document. The scheme function called is search-next, using code like this in edit-menu.scm:

(when (search-mode?)
      ("Find next match" (search-next)))

The shortcut for search-next is assigned in generic-kbd.scm, once per profile. Under MacOS the relevant code is:

  ("search macos g" (search-next))

which apparently means that the shortcut is only made available when in search mode (see prefix-kbd.scm for some of the keys). The problem is that this seems to mess up with the way the menus automagically display the configured shortcuts. Only after deleting the "search" in "search macos g", do I see the shortcut in the menu, which obviously sucks.

Any ideas?
________________
Miguel de  Benito.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]