I am assuming by in the same document, you mean you are linking to a heading within the note you are in. Not sure if this is the most efficient, but here is one option:
select the string
press ctrl x (cut)
type [[
begin typing note name and/or use down arrow to select it in autocomplete pop up
type #
select heading
press Enter
place cursor after last character of heading name within link created
type |
press ctrl v (paste)
Hope that helps. I am not at a computer to double check this, but am pretty sure it should be right or at least close.
You could also just link to the note heading then add the | (pipe) and string within link afterwards if you find that easier in cases where you don’t have the string yet.
Yes, that’s exactly what I mean, thanks so much, @I-d-as.
Your instructions do exactly what I want.
You have solved it for me - and I am very grateful!
It was the step that I have to remove the string from which I want to link which I was missing; I had worked out the # instead of Enter.
If this is something which users want to do often, I wonder whether there is a plugin or similar for it. As I say, I’m new to Obsidian, but learning rapidly!