Leo now supports find/change history!

32 views
Skip to first unread message

Edward K. Ream

unread,
May 29, 2026, 2:22:25 AM (12 days ago) May 29
to leo-editor
​PR #4698 is now in Leo's "devel" branch. This PR allows you to browse through previous searches via up/down arrows in Leo's find box (or in Leo's minibuffer if you use the minibuffer for finds).

Leo saves​ the find settings as well as the find/change text. ​For example, a regex search is different from a whole-word search even if the find text is the same.
​How did we ever live without this killer feature? 

​Many thanks to Félix for suggesting this enhancement and for improving its implementation.

Edward

Thomas Passin

unread,
May 29, 2026, 5:13:53 PM (11 days ago) May 29
to leo-editor
The first time I tried to arrow the search history, I got an error message. After that, it worked as expected.

Uncaught exception in Leo...
Traceback (most recent call last):
  File "c:\Tom\git\leo-editor\leo\plugins\qt_frame.py", line 586, in wrapper
    return self.keyPress(event)
           ~~~~~~~~~~~~~^^^^^^^
  File "c:\Tom\git\leo-editor\leo\plugins\qt_frame.py", line 562, in keyPress
    c.findCommands.do_arrow(char=ch, in_minibuffer=False)
    ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "c:\Tom\git\leo-editor\leo\core\leoFind.py", line 3546, in do_arrow
    bunch = self.prev_searches[self.prev_searches_i]
            ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
IndexError: list index out of range

Edward K. Ream

unread,
May 29, 2026, 9:17:38 PM (11 days ago) May 29
to leo-editor
On Friday, May 29, 2026 at 4:13:53 PM UTC-5 tbp1...@gmail.com wrote:
The first time I tried to arrow the search history, I got an error message. After that, it worked as expected.

Thanks. Here's how to cause the crash. Open the Find Tab. Click in the Find box. Click the down arrow.

I'll fix this soon.

Edward

Edward K. Ream

unread,
May 29, 2026, 9:35:03 PM (11 days ago) May 29
to leo-editor
On Friday, May 29, 2026 at 8:17:38 PM UTC-5 Edward K. Ream wrote:
On Friday, May 29, 2026 at 4:13:53 PM UTC-5 Thomas wrote:
The first time I tried to arrow the search history, I got an error message. After that, it worked as expected.

Thanks. Here's how to cause the crash. Open the Find Tab. Click in the Find box. Click the down arrow.

I'll fix this soon.

Done via PR #4715, merged into devel.

Edward
Reply all
Reply to author
Forward
0 new messages