Git Product home page Git Product logo

better-search-views's Introduction

Hi there 👋

  • 🛠️ I'm a software engineer and I work on Obsidian plugins in my spare time
  • 📫 How to reach me:
    • You can create an issue in one of my repos
    • You can write to me directly: [email protected]

GitHub Stats

better-search-views's People

Contributors

ivan-lednev avatar ivan-liadniou-epam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

better-search-views's Issues

[BUG] Showing the same result multiple times

Let the games begin!

The first test shows that the plugin shows the same results several times -- see the search for "markup" under the H1 "Introduction" section:

Screenshot 2023-07-18 190522

It would be great if the plugin could slim the same results to show only one recurrence.

Render copy button in callout for Directly Copy the concent in callout from search view

User Case: I would like to click the copy button to directly copy the concent in callout from search view without jump to the orginal source.

Background:
I've noticed that the copy button in the default block of the Admonition plugin renders as expected, though click it will copy content and jump the original source.

  • Example of copy button of the default block of Admonition:
    image

However, the copy button in the callout section (added by the Admonition plugin) does not render.

  • Example of copy button of callout( the button added by Admonition plugin):
    image
    image

If it's possbile, could you please consider adding this feature?

Thank you for you work!

[Feedback] Awesome Plugin

Excellent implementation, and keep up the hard work!

I am beta-testing your plugin and will come back to you with my findings.

[FR] Add an option to ignore H1

In many cases H1 are identical or very similar to file name, the displayed results can be more brief if H1 can be hidden. It also helps when displayed in narrow spaces.

Feature request: remember sort order of the linked references

Not sure if it would be possible to do, since it's part of the core "Backlinks" plugin, but it would be great at have an option to remember the sort order of the references.

Right now it defaults to "File Name (A to Z)" after Obsidian restart, but I often use "File Name (Z to A)" and have to manually change it every time.

Thanks!

Feature Request: have an option to include less content in the results

In the content of "Topic A" note:

# [[Topic B]]
Contents related to both topic A and B

Now if I go to "Topic B" note, in the Backlinks pane, the "Topic A" section will display the entire content below the heading # [[Topic B]], which can be very long. In this case I'd like the displayed results only show the heading and no content (or it can also be collapsed by default).

Ideally, there are 3 control levels:

  • Only include the line that the search term appears.
  • Include the full context (current behavior).
  • If possible, a middle ground solution is to include about 5 lines of text below the level of the search results, like a preview. Users can click the results to view more details.

If it's too much, I can live happily with "Only include the line that the search term appears". I believe that's the default search/backlinks behavior in Obsidian(?)

Related to #8?

Feature request: Render parent list items in markdown

Really awesome plugin, great work!

Right now the parent list item is not rendered in "Linked mentions", as you can see on the screenshots below. Is is possible to render these items? (I would expect it to have the same formatting as in the original page).

image image

Checkboxes in search act as if they are "checkable" but do not actually toggle the checkboxes in notes

When search results include items with checkboxes, I can click the checkboxes in the search results and they appear to toggle from unchecked to checked. However, they don't actually change the checkbox status in the actual note. So this seems misleading to me - it looks like I can check off my tasks directly in the search view but I really can't. Am I supposed to actually be able to affect the checkbox statuses in notes? If not, it seems like I shouldn't be able to check them in the search view.

[FR] Compatible with obsidian-query-control

obsidian-query-control and better-search-views are both excellent Obsidian plugins. However, unfortunately, they conflict with each other. When query-control and better-search-views are both enabled, the renderMarkdown feature of query-control is disrupted, which is a core requirement for my use of query-control. Not being able to use both of these excellent plugins simultaneously makes me very sad.It would be great if you could make obsidian-query-control compatible with this.

Finally, I want to express my heartfelt thanks to you for providing this excellent plugin.

missing documentation / how to use this.

Hello there,

how do you use this plugin?

On the README.MD page I only see some prepared views / search queries.

How do you actually perform a search / query from an existing document and what's the syntax.

I'm missing technical documentation and sorry, but the GIFs are nice, but not really self-explanatory.

Thank you.

severe slowdowns (with Backlinks tab open) and errors

Hi!

I tried running the plugin for a few hours and experienced severe slowdowns with the Backlinks tab open in the sidebar and notes containing lots of backlinks. It seemed a few times unlinked mentions were being calculated, although I never clicked on the Unlinked mentions title.

I also saw this error pop up a few times. The note referred to looks like a run-of-the-mill note and loads fine.

Screenshot 2023-08-24 at 9 54 12
Error while mounting Better Search Views tree for file path: 00 meta/05--css/edi/img highlight.md. Reason: Error: No section cache found in 00 meta/05--css/edi/img highlight.md
    at createContextTree (plugin:better-search-views:4483:15)
    at Patcher.mountContextTreeOnMatchEl (plugin:better-search-views:4680:25)
    at e.eval (plugin:better-search-views:4643:23)
    at e.wrapper [as renderContentMatches] (plugin:better-search-views:4219:20)
    at app.js:1:1242238
    at app.js:1:1198807
    at app.js:1:236999
    at Object.next (app.js:1:237104)
    at a (app.js:1:235822)
reportError @ plugin:better-search-views:4668

Turning off the plugin and closing/opening the vault brought the speed back to normal.

macOS 13.5, Obsidian v1.4.4, Better Search Views 0.2.0
Let me know if you'd like me to test anything.

Good luck!

[BUG] Disabling `Show more context` causes reversion

Disabling Show more context causes reversion to default search view. When re-enabling Show more context, default search view persists. Pressing enter in the search field restores "Better search view"

And it is, truly, wonderfully, better.

Re-add "link" button to unlinked mentions highlights

I have a selection of pages where I make use of the unlinked mentions feature to find relevant page links and then link them up to the page I am working from. In general this plugin adds much more context, but it break this workflow and makes it hard for me to see that I actually have an existing page to link to and work from. Obsidian has had a quick button to click and create an actual link for a while, which this plugin removes (as far as I can see - I did check for theme incompatbility). I would like for it to be re-added to the unlinked mentions section, so that unlinked mentions can be quickly promoted to concrete links again.

add a control bar to each embedded query with various actions

add a control bar to each embedded query with various actions such as: collapse all, show context, sort, hide title, hide results, render markdown, and copy results.
There used to be a great Query Control Plugin,https://github.com/nothingislost/obsidian-query-control
unfortunately, Obsidian 1.2.x+ seems to have broken Query Control in the Search tab and embedded search queries. it has been unable to work normally for several months.
I think you can learn from the idea of this plugin, I believe your plugin has great potential

little but important improvement

thank you for the cool plugin.

i like obsidian, but it gives me a huge headache when i search several words.
by default obsidian joins search words with OR
and I have to enclose them with quotation marks to let search with AND.
his is extremely irritating and disappointing for me.

could you please make an option in your plugin "Autoenclose search string"?
i believe it will be useful for a lots of people

regards

possible settings options

Hi, thanks for this fantastic plugin!
I'd like to suggest a useful setting option.
I use a lot of embed search, which pulls from a long document and create smaller documents that consist from the search results.
The embed search views however does not show the whole paragraph or whole list of items.
An option is setting where a user can search the granularity of the search would be good idea....
example: search and display everything
below h1 heading (displays everything up to the next h1 heading)
below h2 heading (view with everything up to the next h2 heading)
and so on.

[Bug] Possible memory leak / Obsidian very sluggish

Suddenly, Obsidian did slow down to an unbearable speed after a while with the plugin enabled.

If I disable the plugin, Obsidian is back to the old glorious days, i.e., it is extremely responsive.

Please check the code, if there is any routine which might cause the high CPU usage.

Links in search results appear to be clickable but are not

Probably a similar issue to #26, it looks like you can click on links to other notes within backlinks and search results. That is, hovering over the link causes it to respond. However, clicking on the link doesn't open the link target but just opens the searched/backlinked note. I certainly like the idea of being able to directly click through to notes linked in search results, so I'm wondering if this could be implemented (i.e. clicking on link takes you to link target; clicking elsewhere in search results takes you to searched document). If this can't be implemented, to avoid confusion I think links should appear "dead" when mousing over them in search results.

`Ctrl+Alt+Click` doesn't open results in new pane

Default Obsidian behavior (Windows) is that when you hold Ctrl+Alt and click on the result, it will open that result in a new pane:

Default.behavior.mp4

When using Better Search View, Ctrl+Alt+Click open the result in the same pane.

Better.Search.View.behavior.mp4

Excellent work

Just had to drop in and say that you did a very nice job. this is one cool plugin!

Is it possible to publish query result using obsidian publish or equivalent one like quartz?

I put tags in callouts and tried to query

block: #maya AND #Inca

and it works in Obsidian editor preview, but when I publish it with obsidian publish, it doesn't work. I copied main.js and styles.css into Obsidian vault's ( publish.js and publish.css) . But it couldn't show result or render.

Any suggestion to make this publish functionality make it work? If it doesn't work for publish, I appreciate a reply

[FR] - Link Button for Unlinked Mentions

First of all, thank you for the plug-in!
I'm using it for a week now, and it is really helpful!

One thing that is included in the basic search and that is really neat, is a button "link" for unlinked mentions.
When creating a new note, it is possible to quickly create internal links to all places the title was mentioned somewhere, so swiftly integrating a new note in to the vault.

This button is not included with better-search-view.
Could you bring it in?
I would highly appreciate it :)

Screenshot -2024-01-12 at 09 22 00@2x

Insane memory usage with backlinks

Hey, firstly - thanks for the awesome plugin 😎

I've noticed some significant memory usage when:

  • the plugin is enabled
  • "Backlinks in note" are enabled (core option that renders backlinks below note's content)
  • note has a huge number of backlinks (100's)

this is peak RAM usage with plugin disabled (usually it sits around 1000 MB though):
image

this is the same note with plugin enabled (it peaked at 2100 MB, and still sits at 1800 MB as I write):
image

clearly the issue is mainly large number of backlinks in their list, but 500+ MB for one plugin is quite a lot!

My guess is that's because a lot of elements are rendered, but what do I know 😅

Would be great to at least have an option to disable plugin's improvements to backlinks view for this case though.

[BUG] Failed to open file (filename). Cant scroll to line

When I start looking for something in a search, it gives me the results correctly.

When I click on one of the results, the note opens, but the place I am looking for where the word is located is not listed.

It gives me an error:

Failed to open file "folder/filename.md"
Cant scroll to line (line number)

This problem was also in previous versions of the plugin.

OS: Windows 10
Obsidian version 1.3.5

[FR] Leave a little space between different matching blocks.

When displaying the results, leave a little space between the matching blocks, otherwise, it is difficult to distinguish different matching blocks in dark mode. Or use other methods to better differentiate between different matching blocks. The following is the effect when using the default theme, and it becomes even more pronounced when using other themes.

Snipaste_2023-10-02_09-18-33
Snipaste_2023-10-02_09-18-55

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.