Skip to content
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

Add select all and tab controls #170

Closed
wants to merge 6 commits into from
Closed

Conversation

fleytman
Copy link

ctrl+a select all
ctrl+q deselect all
tab move down
tab+shift move uo

after merge #83 remove 68-69 strings

@@ -65,14 +65,16 @@ def get_options(self):
yield choice, selector + " " + symbol, color

def process_input(self, pressed):
# Remove after merge #83
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are referencing a #83 here probably from other project since it is completely unrelated to what we have here. For referencing other projects you should put the whole link (magmax/python-readchar#83) to avoid confusion of developers reading this code.

@@ -89,6 +91,11 @@ def process_input(self, pressed):
elif pressed == key.RIGHT:
if self.current not in self.selection:
self.selection.append(self.current)
elif pressed == key.CTRL_A:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You added new branches to the code without adding tests for them. So this change request is reducing our test coverage. Please update the tests.

@@ -65,14 +65,16 @@ def get_options(self):
yield choice, selector + " " + symbol, color

def process_input(self, pressed):
# Remove after merge #83
key.SHIFT_TAB = "\x1b\x5b\x5a"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of adding a code while a PR is not merged, I would focus in having the dependency updated. This is creating some double work for you, me and other people working on python-inquirer.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Last update in readchar 4 feb 2022. I dont now, how many time need for merge it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@magmax do you think we can have a new version with magmax/python-readchar#83 in forseable future?

Copy link
Author

@fleytman fleytman Jul 18, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now magmax/python-readchar#83 is part of magmax/python-readchar#79 , but in case of a successful answer, I will reopen that MP

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is already merged and in pre-release state

for x in self.question.choices:
self.selection = list(range(len(self.question.choices)))
elif pressed == key.CTRL_Q:
self.selection = []
elif pressed == key.ENTER:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I see there are no mentions of the changes on documentation and change-logs.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do i can found change-logs files?

@Cube707
Copy link
Collaborator

Cube707 commented Jul 28, 2022

FYI: the changes requested in magmax/python-readchar#83 are now merged and will come avalabel in v4.0.0, which is currently in pre-release state.

change comment in tests
@Cube707 Cube707 added blocked waiting for something else and removed blocked waiting for something else labels Aug 7, 2022
@Cube707
Copy link
Collaborator

Cube707 commented Aug 11, 2022

readchar-v4.0.0 is released now, so this is no longer blocked

@Cube707
Copy link
Collaborator

Cube707 commented Nov 15, 2022

part of this is handeld in #275 and shift support is not portable anyway. So I am closing this

@Cube707 Cube707 closed this Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants