-
Notifications
You must be signed in to change notification settings - Fork 26
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
SCVim: Use vim native help system #46
Comments
It would be amazing if you could some how integrate the help browser into VIM natively and copy-paste from within there. I think I'll try and explore that possibility |
@datamads I would also be interested in resurrecting the vim help system as an alternative to the HelpBrowser. Pre-IDE days it was the way it was done in Maybe one can think of a converter script which converts html (or .schelp) files to .scd. Here is a test[0] using [0]:
|
Oh man that looks amazing!! I toyed with the idea of writing a .schelp to vim-help file-txt file converter last night in Python. This is a very rough sketch and very particular to how I like things but still this could generally be one way of doing it. This one just converts one file for the moment. Bear in mind I rarely write python code.
|
This adds the help file formatting for plugins in Vim (see |
The problem with using a python script like above is it needs paths to all help files somehow. Not sure if that's possible. But the advantage is the resulting vim help files work nicely inside of vim. An alternative approach maybe would be to use the SCDoc class in conjunction with vim buffers some how? http://doc.sccode.org/Classes/SCDoc.html |
One way of doing the pandoc thing using strictly vimscript and supercollider could be this. Add it to your .vimrc to test it out. Hmm, but it'll add a dependency for pandoc, and open it in another pane in tmux / a new window. This is only unix for now.
|
Here's another idea: Open the help file in Firefox (or some other browser?) instead of the half broken file browser
|
Very cool ideas! The last one could also be achieved by using scdoc.org online help system, bypassing the interpreter. Another approach I'm thinking about would be to write a new |
I'd love to see a native .schelp in-vim solution, instead of an external software dependency (and without compiling to a different format). This could in theory be done with a filetype exte sion for .schelp, not sure how feature complete such a solution would be. |
I started working on a SCDocVimRenderer. It is still a long way to go, but I managed to render the help as .txt files and remove some of the HTML markup. Still not sure if using an external script would be a faster way to go about this.. But it would be really nice to reuse the logic from the HTML renderer so that one could convert the links to vim-style help system links for instance. |
Hi, Curious to find out what the status is on this! I have been having major problems with my help browser on Linux lately, and I am trying to get away from html... I used @davidgranstrom's excellent idea to pandoc all the help files, stripped the suffix from the resulting files and added the directory to vim's path. This now allows me to gf on any class and have vim open up the help file in a separate buffer. Pretty f***ing far from ideal, but it's something.... |
For me on MacOS the new version (3.10) of SC has helped immensely, now the default help browser window almost works fine! I also did a backup solution of stripping all help files and converting them to vimhelp-files to have them open inside of Vim. Might share that progress |
OK, reading through the thread once more, to assimilate all the great ideas ;-)
Almost the same as @madskjeldgaard's solution, but on Linux. Thanks a lot! This has been bugging me for a while :-) |
The help browser isn't really part of scvim but of sclang, and it's nice to hear things have improved with the new SC. I'll keep this around as a go-to issue for implementing a vim based help system- especially since this is reported to have worked on the older scvim, @davidgranstrom, this could possibly be considered a regression. I suspect the answer is to be found way back in old history, after all, this is based on the original work by Alex Norman. |
Hi @capocasa, since my last comment @davidgranstrom has made a native help system work in his scnvim plugin. This now works perfectly for my needs. |
[OT] It would be great to have https://github.com/davidgranstrom/scnvim be part of official https://github.com/supercollider 👾 |
i agree, i have been meaning to contact david and see if they are interested in that. |
Yes it should definitely be official. I have used it on a daily basis since the beginning and it is top notch
Get Outlook for Android
On Fri, Nov 8, 2019 at 3:18 PM +0100, "Brian Heim" <[email protected]> wrote:
i agree, i have been meaning to contact david and see if they are interested in that.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Amen to that! I can't imagine my life without this tool. |
i will talk to them about it (unless someone else does first) |
So scnvim's pandoc based help browser looks like it's reasonably portable to scvim. Any volunteers? I'm a neovim user myself, but I usually tend to have a more minimalist environment than scnvim offers (but the features that are there are very very cool indeed). So I think it would make sense to selectively port some features to scvim. |
I had a batch process that converted all the old rtf and, then html, help docs to plain text format (scd) and also created a tags file so they could be found with vim's help system. It was pretty simple but worked pretty well I thought. |
So this one's been with me a while. The help browser in SCVim works pretty great but there's a few bugs at least on MacOS that are kind of crippling:
I'm running SC 3.9.1 on High Sierra 10.13.4 but these bugs have been with me for a long time now.
Thanks a lot !
The text was updated successfully, but these errors were encountered: