A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/jrblevin/markdown-mode/issues/421 below:

Enumerate reference link text when using markdown-insert-link · Issue #421 · jrblevin/markdown-mode · GitHub

When adding an implicit reference link via markdown-insert-link, the existing reference link names should be enumerated when entering the text.

Expected Behavior

Let's say my file looks like this (where the | is the cursor):

Here's another [website](http://foo.example.org).

See my | for more details.

[homepage]: https://www.example.org/homepage.html
  1. Hit C-c C-l or M-x markdown-insert-link.
  2. I am prompted for URL or [reference]:. I hit Tab and am offered a list of completions, which contains the following:
    1. [homepage]
    2. http://foo.example.org
    3. https://www.example.org/homepage.html
  3. I leave the prompt blank and hit Enter.
  4. I am prompted for Link text:. I hit Tab and am offered only one completion, homepage.
  5. I type hom, hit Tab, and homepage is filled for me.
  6. I hit Enter, and my file now looks like this:
Here's another [website](http://foo.example.org).

See my [homepage][]| for more details.

[homepage]: https://www.example.org/homepage.html
Actual Behavior

Starting with the same file as above:

Here's another [website](http://foo.example.org).

See my | for more details.

[homepage]: https://www.example.org/homepage.html
  1. Hit C-c C-l or M-x markdown-insert-link.
  2. I am prompted for URL or [reference]:. I hit Tab and am offered a list of completions, which contains the following:
    1. [homepage]
    2. http://foo.example.org
    3. https://www.example.org/homepage.html
  3. I leave the prompt blank and hit Enter.
  4. I am prompted for Link text:. I hit Tab.
  5. A Tab character is inserted in the minibuffer.
Steps to Reproduce

I guess I got ahead of myself. See the Actual Behavior section.

Backtrace

No error is produced.

Software Versions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4