-
-
Notifications
You must be signed in to change notification settings - Fork 845
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
Update display config methods #823
Conversation
Thanks for all the work here. I know that tj also had plans to change how layouts work. So its hard for me to comment on your proposal. I know there is this: #773 and #771 Its definitely one of the areas telescope needs improvement. So thanks again. PS: Ignore tests, #821 is currently breaking everything. But make sure that your fork has github actions enabled (or permissions) so |
This looks cool, but wait a week for me to take a look when I'm back before merging. It's OK if we make some breaking changes, but I'd prefer to only break it once for a bit 😂 Thanks for the PR, I like where this is going. |
skip-checks: true
skip-checks: true
skip-checks: true
Couple of comments on defaults affecting layout:
What are people's thoughts on this? |
I think this is a good idea. I was trying to debug an issue recently with the
I like the sound of this, but don't really know enough about how the size of Telescope is currently calculated to have a very meaningful opinion on this aspect. I'll let others hopefully give more constructive feedback on this point. Thanks for all of your hard work lately @l-kershaw, really looking forward to seeing some of the code you've written getting merged! |
Yeh, I was having the same issue. I have changed the name so it matches now
I think this is fairly common, particularly as some layout strategies ignore some options that it seems like they shouldn't. Hopefully making it clearer how this is calculated will make it easier for users to customise as they wish. |
I think the tests should not be necessariyl about the "does the config load correctly" but "do we merge the tables". We can export a function I will see if I can do anything related to this today. |
Some stuff I'd like to see done before this PR is merged:
local telescope_defaults = {
sorting_strategy = { ... }
}
@l-kershaw what else do you think? |
Re: your first comment
Re: your second comment
I can't think of any additional aims for this PR atm, but happy to discuss if anyone else has suggestions. |
I have done a first pass on implementing the ability to resolve @tjdevries could you have a look to see if this is the sort of thing that you wanted? |
So for preview cutoff, I was thinking we could just have different help text for vertical vs. horizontal vs. center (etc.). It would just say that it does rows in one and columns in the other. I don't think we need to make a completely new style of resolver or anythinga |
(I'll respond to other comments later) |
Default theme in setup was suggested yesterday after i merged picker configuration. See #883 (comment) Could be part of this PR as well. Thoughts? |
Not sure why the linter is complaining as I can't find any lines that are too long in the file specified 🤷 @tjdevries I've reverted the resolve setup and switched to comparing for lines with the @Conni2461 I like the idea, but I'm not sure if it should be part of this PR. It doesn't rely on any of the new stuff here, or vice versa, so IMO it should be a separate PR. If people have strong preferences for it being in this one we can do, I'm just a bit concerned about scope creep with this PR, as it's already quite big 😅 |
You can rebase in ~5 min again. Then linting should be fixed. I merged something with a lint error (i missed it because of docgen) but the same person had another PR open that was almost done and linting will be addressed there. I will merge it after i have tested it. Yeah separate PR for that theme thing is probably better. We wanted smaller PRs now anyway. 🤣 Edit: you can rebase if you want to get rid of the linting error :) |
I can't figure out why, but the help tags between Possibly something to do with running out of space on the Any ideas? |
Let's do theme in a different PR -- It shouldn't be a breaking change, right? So we can do that part later? I don't want to add anything else to this if we can help it. |
OK, I think this is very very close to merging -- but I don't want to merge before I'm gone for a week in case something goes weird. So maybe we wait until after that and then we can merge when I'll be around |
replaced by #922 Thanks for your work @l-kershaw |
Plan:
width_padding
andheight_padding
option from layout strategies.width
andheight
allowing a table of the form {padding
=foo} where foo is one of the other options, and then define width in terms of padding.For more details on the general idea, see the discussion in this issue.
Feedback is very welcome 🙂