Uh oh!
There was an error while loading. Please reload this page.
Redesign Completion System - #1622
Conversation
e811891 to
9c3645eCompare86ed365 to
5e78c64Compare9abd538 to
ef7850aComparee282e78 to
f64f0a4Compareb1737ad to
6ed101dCompare9f332b9 to
12e6b08CompareUh oh!
There was an error while loading. Please reload this page.
2071ff2 to
5cf7e04Comparedaf7b52 to
2438e73CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
2438e73 to
5e5815bCompareUh oh!
There was an error while loading. Please reload this page.
jkowalleck
commented
Aug 8, 2020
could you review MLH-Fellowship#28 and merge it into your branch, so #1622 gets updated according to #1529 ? thanks in advance. |
Pushed what I've been working on so far. It looks like it rewrites the entire rewrite, but most of the changes are cosmetic or reorganizing, not rewriting the logic for the most part. I'll rebase this into the original commit, to keep the rewrite history useful for later. Haven't looked at the docs or changelog yet, and the failing tests are Bash not being available in those envs.
Things I noticed that I want to address:
|
2dc3348 to
0595b52Comparekortina
commented
Sep 29, 2020
FYI, on @davidism hunch, I (in the pip installed click, version on my machine, 7.1.2) edited the file at: And removed the line in question: Now it respects my zsh config! Separately from this PR, do you think I should submit a PR that just removes that line? |
davidism
commented
Sep 29, 2020
I already got it. It was originally introduced as part of #1059, but didn't seem relevant to that, so I removed it. |
kortina
commented
Sep 29, 2020
ahhh, this is so awesome! 🙏🏿🙏🏿 |
jkowalleck
commented
Sep 29, 2020
davidism
commented
Sep 29, 2020
The file was renamed, and since it was also rewritten significantly git shows it as deleted (and a new file created). All the behaviors are still tested. |
jkowalleck
commented
Sep 29, 2020
@davidism |
https://github.com/pallets/click/pull/1622/files#diff-ccad5580eac2cb11fe983477ec9559daR204-R208 The longer test wasn't necessary, as they were all different ways to write the same underlying Click behavior, which is now what is represented in the test. |
jkowalleck
commented
Sep 29, 2020
@davidism thanks for making this clear.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
2e4c8a2 to
6e0af87CompareCo-authored-by: Kai Chen <kaichen120@gmail.com> Co-authored-by: David Lord <davidism@gmail.com>
Co-authored-by: Amy <leiamy12@gmail.com> Co-authored-by: David Lord <davidism@gmail.com>
598f69c to
6313dd2CompareCo-authored-by: Kai Chen <kaichen120@gmail.com> Co-authored-by: David Lord <davidism@gmail.com>
new function takes additional param arg, must return a homogeneous list of strings or CompletionItem, and must perform matching on results
6313dd2 to
3faede8Compare
Resolves#1484
Resolves#780 (Files and paths)
Redesign the Completion to be more extensible:
ShellCompleteShellCompleteviaadd_completion_classshell_completefunction to every Click object (types, params, etc.) that takes inctx,all_args, andincompleteto determine the metadata in the form(type, value, help)dirindicates to shells to default to their own completion system for directoriesfileindicates to shells to default to their own completion system for filesplainindicates to the shell to use the value of metadataSee #1622 (comment) for more changes.