removed lnking tasks to note tabs
This commit is contained in:
@@ -25,7 +25,9 @@ export const TagPicker: Component<TagPickerProps> = (props) => {
|
|||||||
const allTagNames = () => {
|
const allTagNames = () => {
|
||||||
const definedTags = store.tagDefinitions.filter(d => !d.name.endsWith("_favorite__")).map(d => d.name);
|
const definedTags = store.tagDefinitions.filter(d => !d.name.endsWith("_favorite__")).map(d => d.name);
|
||||||
const bucketTags = store.buckets.map(b => `@${b.name}`);
|
const bucketTags = store.buckets.map(b => `@${b.name}`);
|
||||||
const noteTags = store.notes.map(n => `#${n.title}`);
|
const noteTags = store.notes
|
||||||
|
.filter(n => !(n.tags || []).some(t => t.startsWith("child-of-")))
|
||||||
|
.map(n => `#${n.title}`);
|
||||||
return [...new Set([...definedTags, ...bucketTags, ...noteTags])].sort();
|
return [...new Set([...definedTags, ...bucketTags, ...noteTags])].sort();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ export const noteSuggestion = {
|
|||||||
char: '#',
|
char: '#',
|
||||||
items: ({ query }: { query: string }) => {
|
items: ({ query }: { query: string }) => {
|
||||||
return store.notes
|
return store.notes
|
||||||
|
.filter(note => !(note.tags || []).some(t => t.startsWith("child-of-")))
|
||||||
.filter(note => note.title.toLowerCase().includes(query.toLowerCase()))
|
.filter(note => note.title.toLowerCase().includes(query.toLowerCase()))
|
||||||
.map(note => ({
|
.map(note => ({
|
||||||
id: note.id,
|
id: note.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user