Comments (5)
Hi Dan--I know it's been a while since you proposed this but I think this would improve the plugin, and I hope to implement it very soon.
from mkdnflow.nvim.
@olesendan I've pushed an implementation of this to the dev branch, if you want to give it a try. The dev readme is updated (see https://github.com/jakewvincent/mkdnflow.nvim/tree/dev), so you can see the sample config there. The links_relative_to
key in the config table now requires a table itself, where you can specify which perspective you want the plugin-to take (e.g. relative to root, relative to current file, etc.). Setup will look for a key in the links_relative_to
table called root_tell
which should be a string that represents the "tell" of the root directory, or in other words, a file that the plugin can use to identify which directory is the root. If you happen to try it out, let me know if there are any issues or things that you think should be changed.
from mkdnflow.nvim.
(Just pushed this to main. Please let me know if you experience any issues with the new functionality!)
from mkdnflow.nvim.
Hi JAke.
Sorry for my late reply. I will do some testing in the next cuple of days. If I encounter any problems, I will raise a new issue.
Greetings from denmark
Dan Olesen
from mkdnflow.nvim.
Sounds good, thanks Dan! :)
By the way, after implementing this, I realized that your suggestion was to be able to specify multiple files that together could identify the root directory. That wouldn't be too crazy to implement, but currently only one file can be provided as the "tell", just FYI.
from mkdnflow.nvim.
Related Issues (20)
- Feature: Trigger MkdnUpdateNumbering in numbered list after ctrl d <C-d> ctrl t <C-t>
- Bug: Links created from visual selection containing multi-byte characters are not formatted correctly HOT 4
- Bug: Can't find external file HOT 1
- neovim 0.9.4: Invalid 'event': 'BufEnter, BufWinEnter' HOT 3
- Error disabling bib module HOT 1
- Bug: `:MkdnCreateLink` doesn't work on a visual selection
- Following links does not work outside of the root_tell file HOT 3
- Error with the default "cmp" module in a fresh installation. HOT 3
- Bug: Compatibility module throws error if 'modules' key not in user config HOT 3
- Bug: When jumping to next md-style link, links to URLs containing parentheses are skipped over HOT 2
- Bug: Commit f1e968c broke link following for when you have 2 links on one line HOT 5
- Question: Change `MkdnFollowLink` to not create links
- Bug: Links to external files not working
- Any Mkdn command ends with "Error executing Lua callback:" HOT 2
- Bib-file not found (not on default path, not in root directory) HOT 1
- Relative link does not open respective to the current file
- many problems in cmp autocompletion HOT 1
- newListItem Fails for Ordered List on First Line of File HOT 1
- Incorrect <tab> behaviour in table HOT 3
- yank as anchor link relative to `root_tell`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkdnflow.nvim.