Skip to content

Commit

Permalink
Merge pull request #64 from canpolat/master
Browse files Browse the repository at this point in the history
Add a tip about adding a title to an internal link
  • Loading branch information
nathanlesage authored Aug 1, 2020
2 parents 1c3f001 + 22d8ba7 commit e6fa1ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/en/academic/zkn-method.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ An internal link is written with the syntax of `[[This is the link]]`. If you `C

The second function triggered by such a link is a global search inside your currently selected directory. It will merely take the link contents, place it in your search field and automatically "press Enter", to initiate the search. This way you can not only open exact files, but also find all other files that link to the file you just opened. So a link in the format `[[<your-id>]]` would open that specific file and also search for all files that link back to this file.

> **Tip**: It is possible to utilize the standard markdown link syntax to set a title for an internal link. For example, `[My text]([[<my-doc-id>]])` will render as if it was a regular link. When you click on it once, it will enter edit mode and reveal the title text and the internal link. Then, you can `Cmd/Ctrl + click` the internal link to trigger its functionality. This 'hack' has two caveats, though: 1) When exporting your document, this may create empty links (depending on your export preferences); 2) If you `Cmd/Ctrl + click` the link (without clicking on it once to reveal the internal link), Zettlr will display an error saying that it could not open the it.
![](../img/internal_linking_tip.gif)

### Tagging

Tagging may be the easiest form of internal searching. If you `Cmd` or `Ctrl` click on a tag, this will simply render a search for all files in your current directory that are tagged with this tag. As tags in the form `#keyword` are not used anywhere in the markdown syntax, using this approach enables Zettlr to use such tags as the perfect means to create a tagging system.
Binary file added docs/en/img/internal_linking_tip.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e6fa1ab

Please sign in to comment.