Fix tag completion
This commit is contained in:
parent
c1cf1b0d3a
commit
cf9ca06dff
@ -27,7 +27,7 @@ export async function tagComplete(completeEvent: CompleteEvent) {
|
|||||||
if (!match) {
|
if (!match) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const tagPrefix = match[0];
|
const tagPrefix = match[0].substring(1);
|
||||||
const allTags = await index.queryPrefix(`tag:${tagPrefix}`);
|
const allTags = await index.queryPrefix(`tag:${tagPrefix}`);
|
||||||
return {
|
return {
|
||||||
from: completeEvent.pos - tagPrefix.length,
|
from: completeEvent.pos - tagPrefix.length,
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
An attempt at documenting the changes/new features introduced in each
|
An attempt at documenting the changes/new features introduced in each
|
||||||
release.
|
release.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Next
|
||||||
|
* Regression fix: hashtag completion works again
|
||||||
|
|
||||||
---
|
---
|
||||||
## 0.2.10
|
## 0.2.10
|
||||||
* Syntax highlighting for a bunch of new languages — see [[Markdown/Syntax Highlighting]]: PgSQL, Rust, CSS, Python, Protobuf, Shell, Swift, toml, XML, JSON, C, C++, Java, C#, Scala, Kotlin, ObjectiveC, ObjectiveC++ and Dart
|
* Syntax highlighting for a bunch of new languages — see [[Markdown/Syntax Highlighting]]: PgSQL, Rust, CSS, Python, Protobuf, Shell, Swift, toml, XML, JSON, C, C++, Java, C#, Scala, Kotlin, ObjectiveC, ObjectiveC++ and Dart
|
||||||
|
Loading…
Reference in New Issue
Block a user