Closed Cornelius-Figgle closed 4 months ago
The update introduces an optional position
parameter that allows setting the initial write position in a curses application when using pick
. This enhancement provides more control over user interaction and cursor placement, improving the overall user experience.
File Path | Change Summary |
---|---|
README.md |
Added an optional position parameter for setting initial write position in pick . |
example/position.py |
Introduces functionality for selecting a programming language using a UI. |
src/pick/__init__.py |
Added Position namedtuple, updated Picker class methods to handle position . |
🐰✨ In the code where the cursor blinks, A new spot to start, what do you think? With a hop and a skip, set the position, Now picking choices with new precision! 🌟🐇
Hi, I think this change looks good to me, but before merge, we need to resolve the conflicts.
Is that something for me or you to do? If it's me, how?
You can execute git fetch && git merge
in this branch, and if you are using a modern editor like VSCode, you can resolve the conflict when you open the __init__.py
in it.
Otherwise, you can edit the file as normal file, and edit it by hand, to make it as what it expected to commit. After that, just running git add <the file
and git commit && git push
.
Last way is click the Resolve conficts
button bellow. but it lacks of context, I only recomented use it unless you have confident.
You can execute git fetch && git merge in this branch
Did this, nothing happened other than the normal output like with git pull
Otherwise, you can edit the file as normal file, and edit it by hand, to make it as what it expected to commit
I went to edit the file and it looked the same as what I had committed? I didn't change anything so there's nothing to push back
Do I use GitHub's Resolve conflicts
now then? Or have I done something wrong... I apologise for my inadequacy 😅
You can have a try to use the Resolve conficts
button. It will append a new commit to your branch, so please be sure to check and test the code locally after use it.
done :)
Thank you for your contribution, merged!
94 #50
I have added the
position
argument to thepick
module, so that a specific write-point can be provided. This means thatpick
won't clear the screen when running in an existingcurses
windowposition
is a dictionary with the keysy0
andx0
, which correspond to they
andx
locations respectively. Default position is the same as previously, now written as{"y0": 1, "x0": 1}
Forked repo here
Summary by CodeRabbit
New Features
position
parameter to set the initial cursor position in the user interface.Documentation