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

Link manipulations #1319

Open
KillyMXI opened this issue Jan 11, 2024 · 1 comment
Open

Link manipulations #1319

KillyMXI opened this issue Jan 11, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@KillyMXI
Copy link

Is your feature request related to a problem? Please describe.

Wikilinks are convenient where they are supported, but if I need to keep the document compatible - I'd like to have an option to convert them to equivalent Markdown links.
Currently there seems to be no way to do it automatically and brackets autocompletion fights me when I try to do it manually.

Describe the solution you'd like

Introduce commands/refactorings to change between link types. Refactorings for individual links, commands for whole document.

For example, Obsidian plugin that does the same thing: https://github.com/mii-key/obsidian-links
(Not all of it might be necessary in context of Foam)

Describe alternatives you've considered

  • Separate vscode extension
    • I can't find any vscode extension that would do the same thing;
    • If there were such extension - it most likely introduces its own wikilink support, that might lead to conflicts;
  • Text replace
    • Manually writing regex every time I need this feature - is a chore that should be avoidable;
  • Text replace rules extensions
    • Extension example: https://github.com/bhughes339/vscode-replacerules
    • Should allow to write replace rules once;
    • General purpose find-and-replace, not aware of any context (can't use document title for example);
    • Might not support all scenarios (runs on full document, not individual links).

Screenshots or Videos

No response

@riccardoferretti
Copy link
Collaborator

Although I wouldn't say it's a priority for Foam, I like the idea, and given the model Foam has of the system, it don't expect it to be super complicated to implement. If anyone wants to look into it I will be happy to provide pointers

@riccardoferretti riccardoferretti added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jan 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants