Skip to content

Internal url handler for referencing other entries #5369

@networkException

Description

@networkException

Summary

Add a url sceme for referencing other entries.
This request would make use future html support with the anchor tag.

Examples

For this example I'm using a simple database structure:

The entry "github" is nested inside the group "accounts", which itself is nested inside "root".
In the advanced edit widget there is an additional attribute called "backup codes".

<!-- The path specified specifies an entries location -->
<a href="keepassxc://root/accounts/github/">Opens the main edit widget of "github"</a>

<!-- ... or opens a group. -->
<a href="keepassxc://root/accounts/">Show the "accounts" group</a>

<!-- If the path "ends" and there are no other parameters, 
its possible to just highlight the target group or entry in its parent "scope" -->
<a href="keepassxc://root/accounts/github/?outer=true">Opens the entry's parent group and focuses "github"</a>

<!-- Continue the path to show a specific widget in an entry -->
<a href="keepassxc://root/accounts/github/main/">Opens the main edit widget of "github"</a>
<a href="keepassxc://root/accounts/github/advanced/">Opens the advanced edit widget of "github"</a>
<a href="keepassxc://root/accounts/github/history/">Opens the history edit widget of "github"</a>

<!-- As the advanced area has two subwidgets which have named subentries, 
they can continue the path as well -->
<a href="keepassxc://root/accounts/github/attributes/">Opens the advanced edit widget of "github"</a>
<a href="keepassxc://root/accounts/github/attachments/">Opens the advanced edit widget of "github"</a>
<a href="keepassxc://root/accounts/github/attributes/backup%20codes/">
    Opens the advanced edit widget of "github" and selects the "backup codes" attribute
</a>

<!-- If the path leads to some sort of text area, 
there are parameters for going to some specific line and column -->
<a href="keepassxc://root/accounts/github/main/note/?line=2&column=4">
    Some line and column in the notes of "github"
</a>
<a href="keepassxc://root/accounts/github/attributes/backup%20codes/?line=2&column=4">
    Some line and column in the "backup codes" attribute of "github"
</a>

I'm open for more suggestments / adjustments to the sceme

Context

This feature could allow users to further organize their database.
For example someone might have one entry for payments, but they for example still want a reference
for all payments made on github in their github account entry.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions