-
Notifications
You must be signed in to change notification settings - Fork 67
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
[feature] Organization of Pages with Categories or Tags #19
Comments
Thanks! I personally don't need any such system of organization. The reason is simply that I generally keep track of everything manually. That said, I'm not against adding such a system. But if we do, then I think it should be well thought through. In the sense that it will add value that is not easily brought from other tools. As an example: If I want to find notes related to a particular topic, I use one of the following methods:
So, say we added a tag system that allows one to add tags to notes. We would need to do several things:
Before I implement anything, I want to finish this discussion and to clearly specify how it should work. Preferably, I should be able to write the documentation and some tests before I implement. That way I will waste less time redoing things after the initial implementation. |
Thanks for your reply. I'll dump my ideas here 😉
Yes that is possible, but I think the point of having wiki.vim is to add some comfort to this. It would be possible to maintain a wiki completely without this plugin in pure vim, but that is not what I want 😄 My usecase would probably be solved by something like a combination of the behaviour of Let's say, I add something like
What about
I'd say file specific. If I'm thinking about something like Wikipedia, you have links which can point to pages and sections, which is already possible in wiki.vim. But you also have "Categories" for a page which will automatically add the page to the category's page.
For my usecase that is enough, but maybe some plugins which generate websites from a vim wiki could utilize it/already have such a feature
👍 |
Agreed (and good point). It seems to me that the tag feature of Vimwiki [0, 1] is close to what you want. And due to the already close relationship, it seems sensible to make something similar to this. For a first implementation, I propose the following:
I'll refine this list with the continued discussion, and when we agree I'll begin implementing. |
I agree with all points. |
I've begun to work on this now. It is not fully functional, but the ideas are progressing. |
Now it is getting closer to ready, and I'd be happy to get some feedback. |
If I may make a suggestion about the tag format, wouldn’t it be a good idea to use the YAML front matter format for metadata that is used by pandoc? See [here](https://pandoc.org/MANUAL.html#metadata-blocks). Then you would be able to use this extra functionality of pandoc during the conversion process, as well as build your tagging system by storing tags within an array embedded in the YAML.
You would need a YAML parser to extract and search the metadata. I don’t know if there are YAML parsers that exist in pure vimscript, but you could always call out to python to handle the parsing.
…Sent from my iPhone
On Mar 29, 2019, at 7:17 PM, Karl Yngve Lervåg ***@***.***> wrote:
Now it is getting closer to ready, and I'd be happy to get some feedback.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@kwrobert I don't mind considering something like that, but I think it is smart to polish the initial version of this feature first. So, please open a new issue with this suggestion, then we can further discuss it there and I can consider to implement it later. |
I think the current implementation now covers the basics. It would be convenient if further enhancement requests are described in separate issues. Feel free to give general feedback and/or notice of bugs related to the "basic" mechanisms here. In the meantime, I'll take the liberty of closing this issue. |
I just want to drop a note here that I am plotting a markdown macro-expansion preprocessor that can output link lists matching a query string. Haven't decided on a final syntax but I think the POC will expand
appending
The idea being that you could have it run on editor focus/save to update. Inspired by TiddlyWiki macros and https://github.com/tbabej/taskwiki. POC # 2 might be to automatically append a backlinks list to each file if there are backlinks. |
@edrex Thanks. If you want to collaborate, e.g. couple what you are doing with wiki.vim, then feel free to open a new issue for a full discussion. |
This plugin is actually quite nice!
I started a wiki and it feels like a very good system to take notes.
But now I stumbled over the problem, that I want to create some kind of overview pages.
Example: all notes about/related to ProjA. At the moment, I have to track them manually.
I don't have a final idea of how it should look like, but I think of some kind of category or tag system.
I imagine adding
[[Tag:ProjA]]
to a Wiki page and then inserting/updating a list of all the pages with this tag in the ProjA overview automatically or at least manually.(Simmilar to the journal functionality)
Bonus Idea: Maybe even organizing the files in folders according to the categories? But I guess this does not work (or is at least complicated - symlinks) if a page can have more than one category...
The text was updated successfully, but these errors were encountered: