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

Optionally hide the heading (or filename or both) from Backlinks in queries, to show only the filename #2923

Open
4 tasks done
Rudtrack opened this issue Jun 28, 2024 · 4 comments
Labels
scope: backlinks Anything to do with the backlinks displayed in task lists type: enhancement New feature or request

Comments

@Rudtrack
Copy link

⚠️ Please check that this feature request hasn't been suggested before.

  • I searched previous Ideas in Discussions didn't find any similar feature requests.
  • I searched previous Issues didn't find any similar feature requests.
  • I am only requesting a single feature. Multiple changes should be split into individual requests, with links between them.
  • I believe my requested feature will be generally applicable to other users, not just me: it is not uniquely tied to my personal workflow.

🔖 Feature description

The ability to turn off the header being displayed in the backlink.

✔️ Solution

Instead of the backlink being displayed as it currently is: a.dev.csharp.access-modifier.protected > Recurring Tasks, I would love only display the file name a.dev.csharp.access-modifier.protected and not the header the task is located under.

❓ Alternatives

I've hidden backlinks and tried short mode. Both of these partly solve the problem, but I would like to have the file name visible and clickable for each task

📝 Additional Context

If you have long file names, it can become a bit unweildly to also have the header being displayed in the query. Being able to turn of the header in the backlink could reduce the amount of space the backlink takes up, but still provide context to where the task is located

@Rudtrack Rudtrack added the type: enhancement New feature or request label Jun 28, 2024
@claremacrae claremacrae added the scope: backlinks Anything to do with the backlinks displayed in task lists label Jun 28, 2024
@claremacrae
Copy link
Collaborator

Thanks!

@Rudtrack Rudtrack mentioned this issue Jun 28, 2024
4 tasks
@claremacrae claremacrae changed the title Hide Header from Backlinks in Queries Optionally hide the heading from Backlinks in queries, to show only the filename Jun 30, 2024
@claremacrae
Copy link
Collaborator

We already have the instruction:

hide backlink
show backlink

These also work, as the parsing

hide backlinks
show backlinks

Proposal

So one way of implementing this would be to provide these - so users could hide either component of the backlink, whilst still having something that jumps to the exact task line

hide backlink heading
hide backlink filename
show backlink heading
show backlink filename

Complications

It will need to also work with this:

hide backlinks heading
hide backlinks filename
show backlinks heading
show backlinks filename

I suggest that if the user hides both, then it displays the link icon, just as if short mode were enabled:

image

@claremacrae
Copy link
Collaborator

claremacrae commented Jun 30, 2024

The following documentation pages would need to be updated:

They should also mention that these options will have no effect in short mode.

@claremacrae claremacrae changed the title Optionally hide the heading from Backlinks in queries, to show only the filename Optionally hide the heading (or filename or both) from Backlinks in queries, to show only the filename Jun 30, 2024
@claremacrae
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: backlinks Anything to do with the backlinks displayed in task lists type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants