vanadium23 / obsidian-dataview-inlinedb

MIT License
22 stars 2 forks source link

Compatibility with Hover Editor plugin. Proposed solution. #3

Closed A-Communist closed 1 year ago

A-Communist commented 1 year ago

Hover Editor

Replace

function renderTable(headers, rows, columns) {
.
.
.
                case ColumnType.File:
                   elem = `<span class="cm-hmd-internal-link internal-link" data-file="${file.path}">${v.fileName()}</span>`;

with

function renderTable(headers, rows, columns) {
.
.
.

                case ColumnType.File:
                    elem = `<span><a data-tooltip-position="top" aria-label="${file.path}" data-href="${file.path}" data-file="${file.path}" href="app://obsidian.md/${file.path}" class="internal-link" target="_blank" rel="noopener" file="${file.path}">${v.fileName()}</a></span>`;