-
Notifications
You must be signed in to change notification settings - Fork 162
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
refactoring of README.md #1601
base: main
Are you sure you want to change the base?
refactoring of README.md #1601
Conversation
README.md
Outdated
have been many obscure requests which have been fulfilled and are yet to be | ||
documented. If you're still having issues and/or questions do not hesitate to open an | ||
issue and I'll be more than happy to help.** | ||
where each of the above sections can be fully configured as below: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should explicitly mention that these are the default options since that is one of the most important aspects of a plugin.
Maybe something like: "Each of the above sections can be fully configured, with the following settings serving as the default options:" so that people can also search for the keyword default
.
Disclaimer noted, although at first glance I really like where this is going and this has been long overdue.
We've conversed enough times before that I wouldn't forget you this quickly :-)
I agree with all of your suggessions, we can work on this together until this gets to a point where everyone is happy, much appreciate the effort and thought you put into this.
I have a custom css that renders the markdown very closely to GitHub so I can also view this offline in my browser: But since I added render-markdown.nvim (also very cool), I use it less: |
The current documentation does not clearly state the behavior when user has passed his custom keybindings. The behavior is that when user has passed the custom keybindings, then all the default keybindings will be removed. To keep the default the keybindings, the user must set the first key to true. Currently the documentation states that: require('fzf-lua').setup {
actions = {
-- Below are the default actions, setting any value in these tables will override
-- the defaults, to inherit from the defaults change [1] from `false` to `true`
files = {
false, -- do not inherit from defaults
},
},
} However, this statement is confusing. What does "Inherit from the defaults" mean? "Default" things are what should be inherited. "Default" and "inheritance" are synonymous in my mind. So you can't inherit a default, you can clear the defaults entirely, or override part of the defaults. So in order to state it clearly, I personally think if we state the behavior in an opposite direction, that should be clearer, aka something like this: See the complete discussion at here: |
fb417fd
to
950ce33
Compare
FYI, rebased to main so fork is up-to-date on the latest commits. |
Added my 2 cents on this refactor, restored the "quickstart" to the top (I think it's important) and made other modifications, categories for commands, etc, see the end result in @gennaro-tedesco's fork Comments ans suggesions welcome |
aeb2dec
to
d681ba3
Compare
d681ba3
to
4faddc3
Compare
Another section that I believe we should improve is the I am not sure myself yet how to use such options, hence I would not want to add some wrong documentation. My understanding so far is that |
Correct, query always the fuzzy march query used by fzf, lsp_query is similar to the search/regex in grep as every new input changes the underlying LSP API query (like live grep). |
I have pushed a little commit adding the above explanation to the |
cdf45c2
to
db22114
Compare
I'm not sure about this change, first the query/lsp_query should not appear as these are part of the defaults, second, the default value is |
db22114
to
4747d21
Compare
7eaf854
to
8595c60
Compare
additional folding of second-order paragraphs fixed anchors on top of README split general options into different foldables added config section for hls fixed reference in table of contents Proposed refactoring of README.md
4747d21
to
194a236
Compare
I have seen this comment of yours on reddit and have decided to come up with a proposal to help you clear up the docs. Let me try to explain the rationale of this PR before you get a heart attack by looking at the diff :D
I have been a long-term Fzf-lua user and more or less know my way around this project, in the sense that I know where to find information I need; however, I sometimes do struggle navigating through the README, the Wiki and the issues just because of course there are so many options and contributions and it is hard to have a unified glance. For this reason I have proposed a strong refactoring of the README based on the below considerations:
<details>
expandables: the README is very long and it cannot be browsed otherwiseAs I said, this is a strong refactoring of the README and it serves as proposal only, I did not mean to intentionally remove instructions or else, only instead to provide a basis for thoughts in case you would like to offer a leaner documentation (especially for first time users).
README diffs are hard to read, to see what it looks like directly in the browser hop on the fork and check it out.