Zim

'enter' should not defocus/blur the 'find' box; when finding within a page, hitting "enter" tends to replace the last match with a new line

Bug #1685371 reported by Robert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zim
Confirmed
Low
Unassigned

Bug Description

I seem to hit this one a lot when I am navigating within a page using the keyboard.

Expected workflow:
* ctrl-f (for "find mode")
* type a common string
* hit enter, enter, enter (browsing through the search results)
* maybe type more to refine the search
* hit escape (to dismiss the 'find' mode/feature)

By my perception, this usually works fine until the *last* result (i.e. the focus changes when there is no further match). Although, when preparing this bug report, 'enter' always seemed to break the find focus.

I've found two workarounds (below), but it's hard to break the muscle memory that is so common for web-browsers (where I am usually performing a "find-on-page").

Workaround:
* use 'Alt-N' or 'Ctrl-G' to go to the next item, rather than enter.

Tags: 2min
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Need to check with e.g. gedit what is expected behavior from other editors

Changed in zim:
status: New → Confirmed
importance: Undecided → Low
tags: added: 0.67
tags: added: 2min
removed: 0.67
Revision history for this message
Robert (pv-ubuntuone) wrote :

FYI, I find that this change produces *most* of the expected behavior:
* https://github.com/Osndok/zim-desktop-wiki/commit/4f7233ace8666bd29c118289bd6c0c2258453339

...the exception being one might not want the whole find field to be highlighted (because new typing will clobber the previous search string), but with this patch it is now only off by hitting the arrow key, and some "finding sundry things" workflows might actually benefit that way.

Also, unless someone objects, I would be fine with this ticket being closed (it doesn't look like I can do that).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.