kortina / vscode-markdown-notes

Install from: https://ark.dance/md-notes
GNU General Public License v3.0
424 stars 65 forks source link

[Bug] auto-complete for wiki-links doesn't work #10

Open thgie opened 4 years ago

thgie commented 4 years ago

Window 10 (up to date) VS Code 1.44.1

I had peeking working yesterday, but since I reinstalled the package that doesn't work either anymore. Can I somehow give you more relevant information?

kortina commented 4 years ago

I pushed a new version yesterday. Possible i broke something. Lemme investigate

kortina commented 4 years ago

I just checked my machine and peeking still works for me (I have not changed anything with that either).

Can you provide:

Possible there is some difference where this works on Mac / Unix but not windows, but I do not have a windows machine so hard to test.

Also, is auto-complete still working? Or is it just peek that is broken?

thgie commented 4 years ago

Thanks for going after the issue :)

auto-complere as well as peek are not working at the moment.

C:\Users\adria\Earth\Notes\Wiki\ideas-for-workshops-practices.md

# Ideas for Workshops / Practices

* List-making as a participatory, democratic practice
* Beating the bounds to bond to the grounds
* Oral Storytelling

[[daniel.md]

C:\Users\adria\Earth\Notes\Wiki\daniel.md

sahn commented 4 years ago

Hi, I'm a Mac user, and I'm also seeing that peeking is not working for wiki links. I just downloaded this extension a few days ago and auto-complete was working before, so it may be an issue with the recent version.

MacOS: Catalina 10.15.3 VS Code Version: 1.44.2 VS Code Markdown Notes: 0.0.4

[Edit: Auto-complete doesn't seem to be working with date timestamp I prefix to my file names, but it is working when I start typing the subsequent name of the file. Peeking is still not working, however]

kortina commented 4 years ago

@thgie:

I am unable to reproduce. I did:

cd tmp/
mkdir -p Earth/Notes/Wiki/
pbpaste > Earth/Notes/Wiki/ideas-for-workshops-practices.md # with your note text in clipboard
echo "_____DANIEL____" > Earth/Notes/Wiki/daniel.md
cd Earth/Notes/
code .

When I edited ideas-for-workshops-practices.md I DO to get completion and peek to work for daniel.md

@sahn

Can you provide the following info?

@thgie @sahn

Can you both try doing the following:

This will help determine if the issue is with your workspace or the extension.

ALL:

I built and uploaded previous versions of the extension here: https://github.com/kortina/vscode-markdown-notes/releases

If you want, you can try getting the vsix files for previous versions to see if this is a regression (I don't see what would cause it, looking at the code...) or an issue that has always existed.

cpopell commented 4 years ago

I'm having a similar issue - I haven't had a chance to test your solution above, but just to report someone else seeing it. I didn't have it working before though, this is my first time using it.

crystalthoughts commented 4 years ago

This also doesn't work for me in your test directory, also new note command doesn't work for me either. Thanks for creating this, I've not much experience but I'll have a look at trying to debug this at some point if a fix isn't found!

kortina commented 4 years ago

Hmm, ok, thanks for checking in the test directory, @danvenn. My guess is it is either:

  1. OS problem (but will need help from someone w a windows machine to debug, probably someone a little technical)
  2. A conflict with another extension

@danvenn @cpopell - what OS are y'all on?

Re New Note Command - I did recently notice an issue (I think with a recent VS Code release) where my alt+n keybinding (suggested in the README) stopped working. I had to rebind to alt+shift+n to get it working - must have been some sort of conflict with new defaults. For those having issues with New Note, does the cmd+shift+p (open command palette), typing "New Note," and selecting "VS Code Markdown Notes: New Note" work? If so, it might be a problem w just the keybinding. If not, something is up with the command.

cpopell commented 4 years ago

I may or may not be as technical as needed but I'll try to set aside some time with the debug directory tomorrow.

cpopell commented 4 years ago

And I'm on Windows. I can give you an extension list.

crystalthoughts commented 4 years ago

I'm on Windows 10.

OK, disabling my extensions didn't change much, but reinstalling this one did. I can't say why that made a difference but it's working a bit better.

Holding ctrl on your test.md, only these two work as links, which is as designed right? :

I made my own markdown directory elsewhere and it works - except for when there are spaces in filename! That may have been throwing me off initially because my personal markdown files all have spaces.

The new note command palette has the same issue as before - it asks for a filename but doesn't create it.

kortina commented 4 years ago

@danvenn - we're planning to add support for _ as another separator in note names, but I'm really not sure about the spaces in filenames. (1) I think it's just a little messy (personal bias) but (2) I think it might complicate some of the regex matching within files in tricky ways. I would definitely want to have more robust testing of the regex matching if we were going to look into this as an option.

iaeiou commented 3 years ago

Hi there,

I faced the same issue. Thanks to the test folder provided by kotina I realized that the amount of files in my workspace was too big for Markdown Notes to autocomplete

Removing some folders from my workspace fixed this issue.

It would be great if Markdown Notes could handle numerous files, but that's no big deal (I candidate to make complementary tests if that can help)

Thanks a lot for this great extension

Update: I've tested Markdown Link Suggestion on my initial workspace and the completion is quite fast. Maybe you can find there some bits of codes to get inspired

kortina commented 3 years ago

@iaeiou how many files and folders did you have in your workspace?

iaeiou commented 3 years ago

@iaeiou how many files and folders did you have in your workspace?

1550 files, a mix containing HTML, CSS and Markdown

gijswijs commented 3 years ago

Same problem, probably because of the amount of files as well: 827 files, of which 70 files markdown.

Would be great if this extension could handle those amounts.