-
Notifications
You must be signed in to change notification settings - Fork 66
Backlinks don't update immediately #348
Description
Experiencing some strange behaviour with backlinks. They don't update immediately (and hence can't be renamed until they do), and the wiki-graph-find-backlings claims the file is not being linked to.
Expected behaviour
Create link, follow link, write something and save. Rename via wiki-page-rename and have both file and links to it be updated
Observed behaviour
Create link, follow link, write something and save. Rename via wiki-page-rename. The file changes name but the links are not updated, and the parent links now point to an empty page.
Existing wiki-files eventually get backlinks over time. I have observed from a minute to an hour for this to happen, not sure what is causing it (or rather what is stopping the backlings for updating in the first place.) Both index.md and the linked files are saved. Wiki-graph-related in the index-file shows that it links to the new non-connected page, but going to the page and pressing wiki-graph-related does not show any connection back to the index.
Another possibly related weirdness: wiki-graph-find-backlinks often shows strange result once the backlings are finally connected. For example showing a page being linked to by another page that isn't actually linking to it. Or multiple entries of index, or multiple entries of itself, or a combination. This behaviour is not consistent though (and it works properly more often than not). Sometimes these entries are normal for all files, sometimes not. I have not found any pattern.
vimrc contains:
let g:wiki_root = '/home/.../doc/wiki'
let g:wiki_write_on_nav = v:trueTried with an empty vimrc with only these entries, to no avail.
My wiki is very plain, just an index.md that links to a couple pages in an hierarchical fashion. Nothing complex. Outside of these backlink issues, the software act as expected so the installation itself seems fine. The journal is working.
System:
- Vim: 9.1
- Distro: Fedora 39
Output of vim --version:
Huge version without GUI. Features included (+) or not (-):
+acl +file_in_path +mouse_urxvt -tag_any_white
+arabic +find_in_path +mouse_xterm -tcl
+autocmd +float +multi_byte +termguicolors
+autochdir +folding +multi_lang +terminal
-autoservername -footer -mzscheme +terminfo
-balloon_eval +fork() +netbeans_intg +termresponse
+balloon_eval_term +gettext +num64 +textobjects
-browse -hangul_input +packages +textprop
++builtin_terms +iconv +path_extra +timers
+byte_offset +insert_expand +perl/dyn +title
+channel +ipv6 +persistent_undo -toolbar
+cindent +job +popupwin +user_commands
-clientserver +jumplist +postscript +vartabs
-clipboard +keymap +printer +vertsplit
+cmdline_compl +lambda +profile +vim9script
+cmdline_hist +langmap -python +viminfo
+cmdline_info +libcall +python3/dyn +virtualedit
+comments +linebreak +quickfix +visual
+conceal +lispindent +reltime +visualextra
+cryptv +listcmds +rightleft +vreplace
+cscope +localmap +ruby/dyn +wildignore
+cursorbind +lua/dyn +scrollbind +wildmenu
+cursorshape +menu +signs +windows
+dialog_con +mksession +smartindent +writebackup
+diff +modify_fname +sodium -X11
+digraphs +mouse -sound +xattr
-dnd -mouseshape +spell -xfontset
-ebcdic +mouse_dec +startuptime -xim
+emacs_tags +mouse_gpm +statusline -xpm
+eval -mouse_jsbterm -sun_workshop -xsmp
+ex_extra +mouse_netterm +syntax -xterm_clipboard
+extra_search +mouse_sgr +tag_binary -xterm_save
-farsi -mouse_sysmouse -tag_old_static
system vimrc file: "/etc/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -DSYS_VIMRC_FILE=/etc/vimrc -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc -Wl,--enable-new-dtags -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes -L/usr/local/lib -o vim -lm -lselinux -lncurses -lsodium -lacl -lattr -lgpm