summaryrefslogtreecommitdiff
path: root/src/app.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-11-28 14:03:33 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-11-28 14:03:33 +0200
commit1efe2aab4fdc811c1dd37c76d1f5d37063745649 (patch)
tree410df70002df7256343a993fc91a9b1dcbb3dbca /src/app.c
parentab44b19cf747c348099c5aa86fcaf8bf0be628c9 (diff)
Bookmarks: Internal tags have a dot prefix
Internal behavior tags are now written in bookmarks.ini with a dot prefix (like hidden files on Unix), and at runtime they are removed from the tags string. This makes things more efficient as it isn't necessary to compile regular expressions all the time. TODO: Add "Edit Feed..." into the Bookmarks context menu, and a new menu item for listing all subscriptions. IssueID #331
Diffstat (limited to 'src/app.c')
-rw-r--r--src/app.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/app.c b/src/app.c
index a2de03ca..0c6e38f1 100644
--- a/src/app.c
+++ b/src/app.c
@@ -2980,10 +2980,8 @@ iBool handleCommand_App(const char *cmd) {
2980 } 2980 }
2981 else if (equal_Command(cmd, "navigate.home")) { 2981 else if (equal_Command(cmd, "navigate.home")) {
2982 /* Look for bookmarks tagged "homepage". */ 2982 /* Look for bookmarks tagged "homepage". */
2983 iRegExp *pattern = iClob(new_RegExp("\\b" homepage_BookmarkTag "\\b",
2984 caseInsensitive_RegExpOption));
2985 const iPtrArray *homepages = 2983 const iPtrArray *homepages =
2986 list_Bookmarks(d->bookmarks, NULL, filterTagsRegExp_Bookmarks, pattern); 2984 list_Bookmarks(d->bookmarks, NULL, filterHomepage_Bookmark, NULL);
2987 if (isEmpty_PtrArray(homepages)) { 2985 if (isEmpty_PtrArray(homepages)) {
2988 postCommand_Root(get_Root(), "open url:about:lagrange"); 2986 postCommand_Root(get_Root(), "open url:about:lagrange");
2989 } 2987 }