Skip to content

Conversation

XXMA16
Copy link
Contributor

@XXMA16 XXMA16 commented Oct 6, 2024

Description of change

Implemented Shift+Tab for scrolling a tab back
Closes #63

Concerns

  • Changed the if else's in HexdumpCommand#parse to a match
  • ShiftTab -> Back takes up a lot of space and might be a weird name
  • CancelPrevious doesn't really need a check_sub since Hexdump is not the first tab

Signed-off-by: XXMA16 <xxma1610@gmail.com>
@XXMA16 XXMA16 requested a review from orhun as a code owner October 6, 2024 22:55
Copy link

codecov bot commented Oct 7, 2024

Codecov Report

Attention: Patch coverage is 0% with 32 lines in your changes missing coverage. Please review.

Project coverage is 3.32%. Comparing base (aba6112) to head (2df403d).

Files with missing lines Patch % Lines
src/tui/command.rs 0.00% 16 Missing ⚠️
src/tui/state.rs 0.00% 16 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main     #70      +/-   ##
========================================
- Coverage   3.34%   3.32%   -0.01%     
========================================
  Files         19      19              
  Lines       2399    2412      +13     
========================================
  Hits          80      80              
- Misses      2319    2332      +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Owner

@orhun orhun left a comment

Choose a reason for hiding this comment

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

LGTM!

ShiftTab -> Back takes up a lot of space and might be a weird name

"Previous" is better :) (Bksp also uses "back")

Also, instead of adding ShiftTab it to the every tab, we can maybe add it only to General, to keep things short.

Another thing, I think it should come after "Tab->Next".

@XXMA16
Copy link
Contributor Author

XXMA16 commented Oct 7, 2024

Should I change ShiftTab to ⇧+Tab?

@orhun
Copy link
Owner

orhun commented Oct 7, 2024

Hmm, that's actually a good idea :)

Signed-off-by: XXMA16 <xxma1610@gmail.com>
Copy link
Owner

@orhun orhun left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@orhun orhun merged commit 2920181 into orhun:main Oct 8, 2024
26 of 27 checks passed
@orhun orhun changed the title feat(ui): add backtab feat(ui): support shift+tab for going to the previous tab Oct 8, 2024
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.

shift+tab for scrolling a tab back
2 participants