nvim-ide icon indicating copy to clipboard operation
nvim-ide copied to clipboard

chore: change `nvim-ide.txt` to `nvim-ide.md`

Open W-Mai opened this issue 3 years ago • 10 comments

rename docs/nvim-ide.txt

W-Mai avatar Nov 29 '22 09:11 W-Mai

Won't this make it so we can't do :h nvim-ide??

mrjones2014 avatar Nov 29 '22 13:11 mrjones2014

Though, to be fair, I generally try to generate my doc/*.txt files from markdown, you can see how I do it here:

mrjones2014 avatar Nov 29 '22 14:11 mrjones2014

I don't see why this would change to markdown? Also I don't immediately see a need to gen from markdown. Call me old fashion, but the flat txt file seems to work fine in almost all cases when viewing from inside Neovim, no?

ldelossa avatar Nov 29 '22 16:11 ldelossa

Yeah, but I've seen on reddit and etc. that a lot of users don't use :h plugin and instead go to the plugin's repo on github to view the docs. That's the motivation for me to gen from markdown, also I just prefer writing in markdown.

I think this is partially because there's a good number of plugins that don't provide any doc/*.txt file, but :h plugin is still my first instinct personally.

mrjones2014 avatar Nov 29 '22 16:11 mrjones2014

At the end of the day, it isn't really a big deal tbh. I'd be fine with leaving it just as a doc/*.txt file.

mrjones2014 avatar Nov 29 '22 16:11 mrjones2014

aha, I can see the usefulness of it with that explanation. If the community wants this, I'm not too opposed, as long as the neovim native help tags work correctly.

ldelossa avatar Nov 29 '22 17:11 ldelossa

Yeah, but I've seen on reddit and etc. that a lot of users don't use :h plugin and instead go to the plugin's repo on github to view the docs. That's the motivation for me to gen from markdown, also I just prefer writing in markdown.

I think this is partially because there's a good number of plugins that don't provide any doc/*.txt file, but :h plugin is still my first instinct personally.

yes, It was for this reason that I wanted to modify this file, because when I opened it on GitHub, it didn't have any format and was very inconvenient to read. And, when I didn't install the current plug-in, I didn't know if the current plug-in was right for me. At this time, reading markdown online is easier to accept than plaint text.

W-Mai avatar Nov 29 '22 17:11 W-Mai

aha, I can see the usefulness of it with that explanation. If the community wants this, I'm not too opposed, as long as the neovim native help tags work correctly.

Help tags work correctly using the tools I've linked in my previous comment. Occasionally you'll get duplicate tags and just have to use lua comment annotations to resolve duplicate tags, but that's the only issue I've experienced.

mrjones2014 avatar Nov 29 '22 17:11 mrjones2014

Okay, I think i'd approve this if the generate to txt stuff was in here as well, and everything continues to work for both users who want the in-neovim help, and those who want the markdown help.

ldelossa avatar Nov 29 '22 17:11 ldelossa

Agreed, I don’t think simply renaming the file is sufficient. When I get time I can set up GitHub Actions to auto-generate the txt any time there is a markdown change.

mrjones2014 avatar Nov 29 '22 17:11 mrjones2014

SGTM.

ldelossa avatar Nov 29 '22 18:11 ldelossa

As an alternative, I tweaked the highlighting in https://github.com/ldelossa/nvim-ide/pull/63

technicalpickles avatar Dec 01 '22 22:12 technicalpickles

Looks like there are a few options:

  • https://github.com/FooSoft/md2vim
  • https://github.com/mklabs/vim-markdown-helpfile

It shouldn't be too much of a lift to get that running on in a GitHub Action

technicalpickles avatar Dec 05 '22 16:12 technicalpickles

Yeah, I’ve got a plan for this. I’m planning to tackle it soon, but I didn’t have a chance this weekend.

mrjones2014 avatar Dec 05 '22 16:12 mrjones2014

hey @W-Mai I probably won't merge this until there's some automation way to move from the .txt file to the markdown. Going to close for now, but if you want to hack something together for this, feel free to re-open with this.

I'm not a user of web-based markdown help, so I expect this to come from someone who needs it more then I do.

ldelossa avatar Oct 06 '23 16:10 ldelossa