obsidian-query-control icon indicating copy to clipboard operation
obsidian-query-control copied to clipboard

Support "Backlinks pane in document"

Open bwydoogh opened this issue 3 years ago • 18 comments

Do you see a possibility that this plug-in also applies those modifications to the backlinks pane of a document (backlinks pane activated by the setting "Toggle backlinks in document")?

bwydoogh avatar Feb 18 '22 06:02 bwydoogh

Hmm the backlinks element already has most of these controls natively. Is there something in particular you're looking for on backlinks?

nothingislost avatar Feb 18 '22 14:02 nothingislost

Your plug-in controls embedded queries, for example "show additional query result context by default"; I am missing a plug-in which also controls that backlinks pane. If I want to see more context in that backlinks pane, I need to indicate this every time again (when opening a new pane).

bwydoogh avatar Feb 18 '22 14:02 bwydoogh

Ah I see. You want the ability to set defaults. Yeah, that should be doable. I'll consider this.

nothingislost avatar Feb 18 '22 14:02 nothingislost

Hi. Is this something you are still working on @nothingislost or is this not feasible?

bwydoogh avatar Apr 17 '22 05:04 bwydoogh

since it's not mentioned yet. i would love the backlinks to render markdown. just a toggle to enable it would be sufficient for me. sometimes i have backlinks mention that's within a header or list -- if it's not markdown rendered, it seems difficult to read. here's an example

image

efemkay avatar Apr 22 '22 12:04 efemkay

Ah I see. You want the ability to set defaults. Yeah, that should be doable. I'll consider this.

Just chiming in to check if you're still planning on doing this?

isle9 avatar Jun 29 '22 11:06 isle9

Give it a try https://github.com/nothingislost/obsidian-query-control/releases/tag/0.5.0

nothingislost avatar Jul 07 '22 04:07 nothingislost

wow. it works really well on my side. i've been using this plugin quite frequent. with this feature i think might as well have it in the community plugin so the general people can benefit from it

efemkay avatar Jul 07 '22 08:07 efemkay

Nice one -- I've been looking for this functionality for quite a while...

  • defaut settings for linked mention panels at the bottom of pages, and in the sidebar, work well.
  • But the plugin seems to have messed up embedded queries: the control bar appears embedded within the first list item rather than above the list; and clicking the "collapse" button links out to another page in my vault rather than collapsing the view (And the same applies when I try to create new queries)(using v0.5.0) OQC Screeenshot

mblumberg avatar Jul 08 '22 16:07 mblumberg

Nice one -- I've been looking for this functionality for quite a while...

  • defaut settings for linked mention panels at the bottom of pages, and in the sidebar, work well.
  • But the plugin seems to have messed up embedded queries: the control bar appears embedded within the first list item rather than above the list; and clicking the "collapse" button links out to another page in my vault rather than collapsing the view (And the same applies when I try to create new queries)(using v0.5.0)

Hmm, what theme is that? Does it appear that way on the base theme?

At least for me, the nav bar is not inside of the results:

image

nothingislost avatar Jul 08 '22 23:07 nothingislost

Ah, you're right: I do see that the nav bar is properly placed in the "default" theme. -- I'm using the Minimal theme, v5.3 (which is, fwiw, I think among the most popular themes)

mblumberg avatar Jul 10 '22 15:07 mblumberg

Ah, you're right: I do see that the nav bar is properly placed in the "default" theme. -- I'm using the Minimal theme, v5.3 (which is, fwiw, I think among the most popular themes)

I use Minimal as well. By default, it does not appear to do what you show. Make sure you don't have any CSS snippets doing something weird with the header bar.

nothingislost avatar Jul 10 '22 16:07 nothingislost

I don't have any CSS snippets or modifications. (My only other customizations are other plugins.)

mblumberg avatar Jul 10 '22 17:07 mblumberg

(*Btw, I very much appreciate your support with this issue)

mblumberg avatar Jul 10 '22 17:07 mblumberg

I just tried it with an empty vault, query control, and minimal and I don't see this issue so I'll need you to do some investigation on your end to determine what's causing this. Inspecting the element and looking for the style that's aligning it to the right may help track it down.

nothingislost avatar Jul 10 '22 17:07 nothingislost

Inspecting the element and looking for the style that's aligning it to the right may help track it down.

Can you tell me how to do that, and then I can report back?

mblumberg avatar Jul 10 '22 18:07 mblumberg

Seems to work fine, except when I open a pane in a new window: a lot of new lines are created for every backlink.

See attached screenshot.

screenshot_20220727 _104731

Can you have a look @nothingislost ?

I don't have the issue (in new windows) when turning off this plugin.

bwydoogh avatar Jul 27 '22 08:07 bwydoogh

Can you have a look @nothingislost ?

Got it "fixed" using following CSS snippet

markdown-preview-view {
  height: inherit;
}

bwydoogh avatar Jul 30 '22 20:07 bwydoogh