-
Notifications
You must be signed in to change notification settings - Fork 7
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
Ensure selection visible during "find" #135
Conversation
WalkthroughThe recent updates introduce improvements to scrolling functionality in the table view methods, optimize screen geometry calculations in table wrappers, and refine the slice representation in Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant Finder
participant QTableView
User ->> Finder: findNext()
Finder ->> QTableView: get index (r, c)
QTableView ->> Finder: returns index
Finder ->> QTableView: scrollTo(index)
User ->> Finder: findPrevious()
Finder ->> QTableView: get index (r, c)
QTableView ->> Finder: returns index
Finder ->> QTableView: scrollTo(index)
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- tabulous/_qt/_table_stack/_finder.py (2 hunks)
Additional comments not posted (2)
tabulous/_qt/_table_stack/_finder.py (2)
168-169
: LGTM! Scrolling functionality added tofindNext
The modification to scroll to the item in the table view after finding it enhances user experience by ensuring the found item is visible.
190-191
: Great addition! Scrolling functionality infindPrevious
Adding the
scrollTo
method after finding the previous item is a useful enhancement for user interaction, ensuring visibility of the searched items.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- tabulous/_qt/_table/_base/_table_wrappers.py (1 hunks)
- tabulous/_slice_op.py (2 hunks)
Additional comments not posted (3)
tabulous/_slice_op.py (2)
56-59
: Conversion to_repr
infmt
function is well-targeted.The modification to use
_repr
for string conversion specifically addresses the handling of NumPy number types, which is a sensible enhancement given the context of numerical data processing.
66-69
: Addition of_repr
function enhances type handling.The introduction of
_repr
is a robust way to ensure that NumPy types are handled correctly, enhancing the flexibility and accuracy of type representation in string conversions.tabulous/_qt/_table/_base/_table_wrappers.py (1)
87-89
: Updated screen calculation inQPopupWidget
is context-aware.The change to calculate
_screen_rect
based on the parent's global position is a thoughtful improvement for multi-monitor setups. It ensures that the popup appears on the correct screen relative to the application.
Summary by CodeRabbit
New Features
Improvements
Bug Fixes