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

Rework documentation #1024

Merged
merged 2 commits into from
Sep 16, 2021
Merged

Rework documentation #1024

merged 2 commits into from
Sep 16, 2021

Conversation

Conni2461
Copy link
Member

@Conni2461 Conni2461 commented Jul 18, 2021

Ready for Review :)

Rework of readme and wiki (live) + more stuff for vimdoc.

Now that we have vimdocs it makes sense to move some of the more specific documentation in the readme to the vimdocs. That affects mostly setup defaults and other stuff. vimdoc > README

Basically we need a better introduction for new users.
Todo:

  • getting started in vimdoc !!!
  • I'll move the api to developers.md for now and write a gettings started guide for people who want to write their own pickers
  • Wiki rework (wiki is meant for community and all documentation for telescope should be part of readme.md, developers.md or
    vimdoc. But we need to make that people can put configurations in the wiki, so i need to clean it up)
  • sorting for setup defaults currently isn't ideal
  • add missing opts for builtin

Close #506 (its clearer now that it is required to have ripgrep installed)
Close #806 (same)
Close #780 (document that it is a lua regex with lua documentation link)
Close #277 (this is mostly already done, after the documentation changes we can close it)
Close #596
Close #1197
Close #1204

CC @tami5 @smithbm2316 @rockerBOO

Shorthand to new rendered documents:

Comment on lines 414 to 542
--TODO(conni2461): Why is this even configurable???
append("prefilter_sorter", sorters.prefilter, [[
This points to a wrapper sorter around the generic_sorter that is able
to do prefiltering.
Its usually used for lsp_*_symbols and lsp_*_diagnostics

Default: require("telescope.sorters").prefilter]]
)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still think this should be removed :)

  • To specific
  • There is no reason for the user to change it
  • We only offer one sorter for prefilter
  • If user doesn't want prefiter he can still pass in a different sorter to that lsp_* picker.
  • Most likely also not used by any extension because we still miss documentation for sorter.lua (this will change in this pr) + documentation for this config value never existed in the first place

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@smithbm2316 smithbm2316 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Conni2461, I added a bunch of comments here on the work you've pushed so far just for some grammar fixes and general re-wordings of different changes to the docs. Everything looks great so far! I'll be happy to take a much more thorough pass through the docs once we move this PR out of WIP and into a full review stage. But hopefully these are helpful for the moment. Let me know if you have any questions over my suggestions!

Copy link

@matu3ba matu3ba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change request is about consistency on upper and lower case wording. And planned scope of PR (keep it more simple to get feedback etc).

Overall nice to have less cluttered README and much better documentation.
Personally I prefer a special document for defaults with a toc in vimdoc, but that is up to you.

@smithbm2316
Copy link
Contributor

smithbm2316 commented Sep 6, 2021

@Conni2461 feel free to ping me whenever you need another pair of eyes on the docs changes. Happy to help proofread if you need some assistance. Now that I've gotten more adjusted to my new day job I should have some time to help on Telescope again here :). I'm gonna try and get to a few docs updates that people have requested and I have pinned to the Projects board in the next couple of weeks sometime.

@Conni2461
Copy link
Member Author

@smithbm2316 Still working on it. I wanna add the missing opts to builtins and i also have a lot of wip stuff for wiki. Like i moved the FAQ stuff to it, so if people have a conflict with another plugin they easily can just add it their. Without opening PR, etc.

I'll try to get it done in the next couple of days. Idk its kinda boring work so i wasnt doing that much 😆 mostly just talking finishing it and not finishing it 🤣

@Conni2461 Conni2461 force-pushed the docs_rework branch 2 times, most recently from 7942779 to ade4b35 Compare September 12, 2021 15:44
@Conni2461 Conni2461 changed the title WIP: Rework documentation Rework documentation Sep 12, 2021
@Conni2461
Copy link
Member Author

This is somewhat ready for a review :)

The only thing i still wanna do is a getting started in vim doc. Just a small getting started. nothing that exciting. But i am already doing open source for 5 hours today. And i need to leave. I try to do it tomorrow.

So if anyone finds time to review this. This would be awesome :)

@Conni2461 Conni2461 force-pushed the docs_rework branch 2 times, most recently from f3bde00 to 5122c7b Compare September 12, 2021 19:45
@rockerBOO
Copy link
Member

In terms of the README, it all looks good to me. Thanks!

@Conni2461
Copy link
Member Author

Note to myself: We should probably mention :checkhealth telescope in the readme and we can also put it in the bug template as another field. Something like :checkhealth telescope output here, similar to nvim --version.

@Conni2461
Copy link
Member Author

I think i have done everything i wanted to do.

Copy link
Contributor

@l-kershaw l-kershaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, this looks really good!
Thanks @Conni2461 for all the hard work 🙂

A few very small comments, but otherwise happy to merge.

Copy link
Member

@kkharji kkharji left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, amazing work @Conni2461. We are one step closer to dominate the pickers industry 😆

@Conni2461
Copy link
Member Author

I might merge this in 5 - 10 minutes, with two commits (so i dont squash it) because @TC72 did some good work here and i want to give him full credit for it.

:)

@Conni2461 Conni2461 force-pushed the docs_rework branch 2 times, most recently from 62074b9 to 458b021 Compare September 16, 2021 09:07
Conni2461 and others added 2 commits September 16, 2021 11:07
* Fixed some grammar and tried to simplify the technical wording

* Fixed the mistake of calling `map` a table instead of a function

* Removed line about passing display to display
@Conni2461 Conni2461 merged commit 2c71ffe into nvim-telescope:master Sep 16, 2021
@Conni2461 Conni2461 deleted the docs_rework branch September 16, 2021 09:14
@Conni2461
Copy link
Member Author

Thanks to anyone who reviewed stuff :)

Its definitely not perfect but hacktoberfest is coming and we need new typos that can be fixed 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants