You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Search when invoked should get prefilled from the currently selected text #1729
Unlike the global search (Ctrl+Shift+F) the local search (Ctrl+F) when invoked gets prefilled from the currently selected text as a search query.
I don't know if the behavior is intentional but in my opinion the global search should also get prefilled from the currently selected text.
Can you reproduce the issue?
Steps to reproduce
Select some text within the current document
Press Ctrl+Shift+F to invoke the global search
The global search sidebar appears
Expected behavior:
The search query input field should receive the focus.
The search query input field should be prefilled from the currently selected text, similarly how the local search is implemented.
Actual behavior:
The search query input field is not focused nor prefilled.
As of v16 (see #1311) the search box is prefilled with currently highlighted text in global search. But the box is still not focussed. And I'm not able to unfocus/return on hitting 'Esc'
Activity
MaanasArora commentedon Feb 6, 2020
Can I work on this issue?
Jocs commentedon Feb 6, 2020
@MaanasArora Yes, you are always welcomed to make PRs.
Ricardo-HE commentedon Jun 2, 2020
@MaanasArora Did you manage to solve the issue? If not I would like to work on it as well :)
MostFrabjous commentedon Jul 29, 2020
As of v16 (see #1311) the search box is prefilled with currently highlighted text in global search. But the box is still not focussed. And I'm not able to unfocus/return on hitting 'Esc'
MostFrabjous commentedon Jul 29, 2020
I added the more specific issue #2294 for the unimplemented parts of this issue. So I think this issue may be closed.
issue marktext#1729