Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags are not highlighted in editor mode when searching #21

Open
violinista opened this issue Dec 1, 2021 · 1 comment
Open

Tags are not highlighted in editor mode when searching #21

violinista opened this issue Dec 1, 2021 · 1 comment

Comments

@violinista
Copy link

violinista commented Dec 1, 2021

Steps to reproduce:

  1. Search for "tag:#flow"
  2. Search results are shown in the sidebar
  3. By clicking on the each search result, file is displayed but the tag is not highlighted (in the edit mode).

Note: When searching for plain text in the sidebar, search results are highlighted normally in editor area .

Current unexpected behaviour (when searching for tags):

Example screenshot

Current expected behaviour (when searching for plain text):

Example screenshot

@violinista
Copy link
Author

violinista commented Dec 2, 2021

I think I found the solution:

.cm-s-obsidian span.cm-hashtag.obsidian-search-match-highlight { background-color: var(--text-highlight-bg); }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant