kislyuk / argcomplete

Python and tab completion, better together.
https://kislyuk.github.io/argcomplete/
Apache License 2.0
1.39k stars 129 forks source link

Truncate input after cursor. Fixes #351 #352

Closed kislyuk closed 2 years ago

kislyuk commented 2 years ago

Need to think under what circumstances we might want to scan ahead in the command line to let characters after the cursor affect parser state. This might never be a good idea if any quoting is going on, since the downstream state will be inconsistent for any incomplete quotes. However it might also be very useful in some circumstances.

codecov-commenter commented 2 years ago

Codecov Report

Merging #352 (3d243b7) into develop (5a20d61) will increase coverage by 0.02%. The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #352      +/-   ##
===========================================
+ Coverage    82.67%   82.69%   +0.02%     
===========================================
  Files            7        7              
  Lines          756      757       +1     
===========================================
+ Hits           625      626       +1     
  Misses         131      131              
Impacted Files Coverage Δ
argcomplete/__init__.py 90.88% <100.00%> (+0.02%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 5a20d61...3d243b7. Read the comment docs.