Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

automatic link creation from [[link with space]] creates 2 files (with and without dashes) #1023

Closed
ultrasaurus opened this issue Jul 1, 2022 · 8 comments

Comments

@ultrasaurus
Copy link

Describe the bug

I'm new to Foam, just cloned the template and tried it today. This bug may be related to #494 but has very simple, easy to repro steps (at least for me).

Small Reproducible Example

https://github.com/ultrasaurus/foam-experiment/tree/twofiles

Steps to Reproduce the Bug or Issue

  1. Make a new file index.md with this content:
# Index

- [[new prototype]]
- 
  1. Roll over the link, press command and click.

Expected behavior

a single file is created with whatever default naming conventions y'all use

Screenshots or Videos

Foam creates two files:

  • roll over and press command => creates new-prototype.md
  • clicking on it => creates and opens new prototype.md

I end up with two files
image

Operating System Version

macOS

Visual Studio Code Version

1.68.1

Additional context

No response

@riccardoferretti
Copy link
Collaborator

Do you have markdown-notes installed? usually this has been the cause of this double note creation in the past

@ultrasaurus
Copy link
Author

I don't have "markdown-notes" installed. Do I need it?

@riccardoferretti
Copy link
Collaborator

Nope, you don't need it.
Can you try disabling all extensions except foam and check if the issue persists?

@ultrasaurus
Copy link
Author

well, works fine with just Foam. Sadly I don't have a record of what extensions were installed when I filed this bug. You might consider an issue template that asks that question. I didn't think of it, and did some experimentation with other extensions after trying foam, so may have disabled whatever it was that was causing the problem.

Thanks so much for your help!

@zomars
Copy link
Contributor

zomars commented Jul 18, 2022

I'm having the same issue and uninstalling markdown notes didn't work for me.

@riccardoferretti
Copy link
Collaborator

Can you check if it happens when only Foam is enabled?

@zomars
Copy link
Contributor

zomars commented Jul 26, 2022

@riccardoferretti yes, disabling foam prevents the double file creating.

@riccardoferretti
Copy link
Collaborator

Ok, that confirms Foam creates at least one of the files. Can you try disabling all other extensions except Foam and check if the double file creation still occurs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants