Closed jederik closed 3 months ago
Hi. Obvious "this doesn't happen on my machine". Some things to check:
.md
extension or similar? .txt
-Files, for example, or files without a file extension, will not be recognized..gitignore
file. Does this cause a problem here?/home/linus/MyNotes
instead of ~/MyNotes
) as a test?If all of this does not help, what happens if you pass the directory as a positional argument like rucola ~/MyNotes
or rucola /home/linus/MyNotes
instead of using the config file?
Maybe that can help us track down the error.
Also report what happens when you do not specifiy a vault path in the config and simply open rucola with out any arguments in the folder you want to index.
The error if you pass a file seems acceptable by me - you are supposed to pass a directory.
Hey. Thanks for the quick reply.
I checked all of your points but none of them helped.
This is my config.toml
:
file_types = ["markdown"]
default_extension = "md"
theme = "default_dark"
stats_show = "Both"
viewer = [
"firefox",
"%p",
]
enable_html = true
css = "default_dark"
katex = true
vault_path = "/home/jederik/notes"
[math_replacements]
'\field' = '\mathbb'
'\liealg' = '\mathfrak'
I definitely have all permissions on /home/jederik/notes
all files are .md
files
there is no git repo or hidden files
absolute path doesn't help
running rucola /home/jederik/notes
shows the same behavior
when removing the vault_path
entry from the config and creating a ~/MyNotes
folder with some MD files in it, there seems to be some indexing on startup but still nothing is shown in the list.
Definitely, pointing to a file doesn't make much sense but I thought it might give you a clue on what the problem is.
So I ran my own application with your exact config, only changing vault_path
to a newly created directory (both as ~/TestNotes
and /home/linus/TestNotes
) I put 4 of my markdown files in. I also briefly wondered if maybe the lack of a .gitignore
confuses the program. Sadly, I did not get your issue.
Internally, rucola uses the directory walker of ripgrep
to index files. Can you maybe check if ripgrep
itself works correctly on your machine? Otherwise I will maybe run up a Ubuntu virtual machine (most of my testing has been on Arch/EndeavourOS as that's what I'm using as a daily driver) and see if I can replicate the problem.
Arrrg... I had a .gitignore
in the parent folder. Sorry, for the trouble and thanks for your effort.
Glad to hear you got it resolved!
If you have any more issues or feedback, don't hesitate to tell me.
Hello. I love the idea of Rucola and am very excited to try it but currently I can't due to the following issue:
I installed Rucola via Cargo on Ubuntu 23.10. However, when I specify a directory as the
vault_path
the files in the directory are not listed in the Select View. On the other hand, when I specify an individual file then this one file is listed but no others and trying to view it gives me aNot a directory (os error 20)
.Hope this helps.