Search existing topics when hyperlinking

Hi everyone, if I may give you a suggestion.

When in editor and hyperlinking a word in a post, it would be a great idea to write a word/keys and dynamically search for matching topics. Because I’m finding myself linking references to other topics.

I saw a similar feature on some wordpress plugins, to easily put anchors and relate content.

20

11 curtidas

This is a duplicate of some other requests:
:lock: Insert internal link like Wordpress
:lock: Fast way to link to existing topic?
:unlock: https://meta.discourse.org/t/how-about-mentioning-topic-feature/7350

You can kind of do something similar when composing by opening the header search, typing your query, using the down arrow to select the topic you want, and then hitting a to insert the link into the composer (totally recognize that it’s a power-user feature, and something in the hyperlink modal would be much more discoverable).

7 curtidas

:confetti_ball: This feature has been added to core just a few minutes ago.

17 curtidas

I hate to be “that guy” but I think category and tags need to appear there as well?

4 curtidas

Also the closed icon/solved icon and so on like search shows. Basically the same as search, minus the excerpt in one line.

3 curtidas

This has been updated, with support for categories, tags and topic status (closed/solved/pinned and so on).

11 curtidas

Este é um dos recursos mais úteis no discourse, permitindo uma ligação cruzada muito mais fácil entre tópicos.

Uma pergunta: quão difícil seria implementar uma pesquisa entre sites neste recurso. Por exemplo, pesquisar um site de documentação de ajuda externo também e permitir a pesquisa desse conteúdo também e a ligação a ele.

1 curtida

Atualmente, isso não está configurado para ser estendido para incluir outros resultados de pesquisa. Suponho que um plugin possa estender essa rota e retornar outros resultados, mas provavelmente não é uma alteração trivial.

Eu não achava que seria. A tecnologia de indexação pode ser redirecionada para um site diferente em um plugin?