Autocomplete from current file

I have to use Windows at work and my favourite application is Notepad++ (https://notepad-plus-plus.org/). A feature I really like – and miss in Drafts – is autocompletion for strings that are present in the file that is currently open.

Example

Plesiorycteropus, also known as the bibymalagasy or Malagasy aardvark, is a recently extinct genus of mammals from Madagascar.

When typing bib a pop-up appears for easy text completion to bibymalagasy. Similar functionality can be triggered by ctrl + nin Vim. I miss it badly in Drafts.

Not exactly the same, but perhaps a useful action that does essential what you described. Likely would be most useful if associated with a keyboard shortcut.

1 Like

Thanks! This is like the Vim functionality and works quite well (if there is only one proposal, it does not react to the return key, however).

It should, how are you using it? You can up-down arrow to select from the suggestions and hit return to accept. Mac or iPad. That’s standard Drafts prompt behavior.

There is a list of entries if there are at least two proposals. If there is only one matching proposal, is is not a single entry in a “list”, but this one proposal appears on a button that looks like it can be triggered by pressing return. The only keys working here are esc and space (both make the dialog go away).

Oh, yeah. The default button is ⌘-return.

1 Like