---
# System prepended metadata

title: PID-783

---

While Obsidian doesn't include a native feature for automatically changing links in note A to use note B's alias as the display name, there are plugins available that can enhance your ability to manage aliases and links efficiently.

One plugin that might be helpful is the "Link with alias" plugin by pvojtechovsky [7]. This plugin provides a command "Create link with alias" that allows you to create a link with a display text that is added to the aliases attribute in the front matter of the target note. This can help you manage aliases and links more effectively, but it doesn't automatically change existing links to use the alias as the display name.

Another plugin is "obsidian-note-aliases" by pulsovi[9]. This plugin manages wikilinks aliases and saves them on the aliases list of the linked note. It provides a command "Save alias of the link under cursor in the target note frontmatter" that can help you manage aliases in your notes.

While these plugins don't automatically change existing links to use the alias as the display name, they can help you manage aliases and links more effectively in Obsidian. You can manually update the existing links to use the alias as the display name by editing the link format to `[[note_B|alias]]`[8].

You can use the following steps to change links in note A to use note B's alias for its display name:
1. Open note A.
2. Find the link to note B.
3. Click on the link to open note B.
4. In note B, click on the ... menu in the top right corner of the note.
5. Select `Copy alias`.
6. Close note B.
7. In note A, paste the alias into the link to note B.
8. Press Enter to update the link.

You can also use the following Regular Expression (RegEx) to find and replace all links to note B in note A to use note B's alias for its display name:
```
\[\[(.*?)\]\](?<!\|)
```
To use this RegEx, follow these steps:
1. Open note A.
2. Press `Ctrl + H` to open the `Find and Replace` dialog box.
3. In the `Find what` field, enter the following RegEx:
    ```
    \[\[(.*?)\]\](?<!\|)
    ```
4. In the Replace with field, enter the following:
    ```
    [[\\1|\\2]](?<!\|)
    ```
    Where `\\1` is the first capture group from the `Find what` expression, and `\\2` is the alias of note B.
5. Click on the `Replace All` button to replace all links to note B in note A to use note B's alias for its display name.