VimWei

Results 51 comments of VimWei

> You can use `set autochdir` if you like that behaviour. I've created a simulated implementation. ``` let g:wiki_root = expand(":p:h:h:h") . "/wiki/" augroup wiki_vim_autochdir autocmd! autocmd BufEnter *.md,*.wiki if...

> * `ww` > * `:echo expand('%:p')` D:/WeirdData/wiki/journal/2024/2024-03-31.md > * `:echo wiki#get_root()` d:/WeirdData/wiki > * `:echo wiki#journal#get_root()` d:/WeirdData/wiki/journal > * `:echo wiki#journal#get_current_node()` D:/WeirdData/wiki/journal/2024/2024-03-31 ![wikiecho](https://github.com/lervag/wiki.vim/assets/25874852/3a1433cc-4abf-43bb-9e88-f7d9e24bd64a) PS: my vimrc config: https://github.com/VimWei/vim-init

> * Just to be sure, update your plugins again. Yes > * `:echo fnamemodify(expand('%:p'), ':r')` D:/WeirdData/wiki/journal/2024/2024-03-31 > * `:echo wiki#journal#get_root()` d:/WeirdData/wiki/journal > * `:echo wiki#paths#relative(fnamemodify(expand('%:p'), ':r'), wiki#journal#get_root())` D:/WeirdData/wiki/journal/2024/2024-03-31

> The _expected_ output of `:echo wiki#journal#get_current_node()` is `2024/2024-03-31`. Yes, I understand. However, in my previous tests, there were three different outcomes, as detailed in the earlier tests 1-3. >...

> you've changed the `date_format` settings. I set the date_format to be divided by year mainly because when there are many files in the same directory, the related software on...

> > > 11\. `echo wiki#journal#node_to_path(2024-04-01)` > > > > > > `d:/WeirdData/wiki/journal/2019.md` > > Ah, that's _not_ as expected at all. I found the possible source of the '2019'...

``` set nocompatible set runtimepath^=%USERPROFILE%/vimfiles/plugged/wiki.vim filetype plugin indent on syntax enable runtime plugin/wiki.vim let s:root = 'd:/WeirdData/wiki/journal' let s:path = 'D:/WeirdData/wiki/journal/2024/2024-03-31' echo s:root echo s:path echo wiki#paths#relative(s:path, s:root) quitall! ```...

There is no `autoload/vimtex/paths.vim` here, only `plugged\wiki.vim\autoload\wiki\paths.vim`. Following your guidance above, I have added 5 echo statements in `plugged\wiki.vim\autoload\wiki\paths.vim`. ![image](https://github.com/lervag/wiki.vim/assets/25874852/891f1e89-d0e1-4adc-a9c5-9477156547fa) The condition `if !wiki#paths#is_abs(l:target)` evaluates to true, and echo3-5 did...

Upgrade(reinstall) wiki.vim and config with: https://github.com/VimWei/vim-init/blob/master/init/plugins.vim#L166-L203 There are still some issues: ## NewTest 1 1. restart gvim 2. open today journal:`ww` 3. open week summary: `wu` Result: open a new...

> you can simplify your config I've simplify config: https://github.com/VimWei/vim-init/blob/master/init/plugins.vim#L166-L182 > * Do you agree that your third test returns the expected result? Yes, the final result of the third...