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

Possible to show “last” subdeck name in Browser? #3387

Merged
merged 16 commits into from
Sep 20, 2024

Conversation

bpnguyen107
Copy link
Contributor

Closes #3348

image

@dae
Copy link
Member

dae commented Aug 29, 2024

Thanks Ben. I think this would be a bit cleaner (but a slightly larger change) if Cell were extended to include an enum specifying the eliding mode, so that paint doesn't need to do a string comparison on the column name. BrowserRow will need updating in search.proto, and Cell will need updating in the Python.

@RumovZ is the author of this code though, and I'll happily defer to him if feels it should be done differently.

@bpnguyen107
Copy link
Contributor Author

Thanks for the feedback. I won't be able to look back into this for the next two weeks, so if someone else wants to take it in the meantime feel free to :)

@RumovZ
Copy link
Collaborator

RumovZ commented Sep 1, 2024

if Cell were extended to include an enum specifying the eliding mode

Completely agree.

@dae
Copy link
Member

dae commented Sep 10, 2024

Still available :-)

@bpnguyen107
Copy link
Contributor Author

I am back on it!

@bpnguyen107
Copy link
Contributor Author

Hopefully this is cleaner

@dae
Copy link
Member

dae commented Sep 20, 2024

Looks good - thanks Ben!

@dae dae merged commit 77fb0fb into ankitects:main Sep 20, 2024
1 check passed
twwn added a commit to twwn/anki that referenced this pull request Sep 22, 2024
* master:
  Update translations
  Add an option to show image from editor in folder (ankitects#3412)
  Call the profile_did_open() hook earlier (ankitects#3421)
  Fix FSRS progress update issues (ankitects#3420)
  Update tooltip text (ankitects#3418)
  Fix pasting from the primary selection (ankitects#3413)
  Fix occlusion rounding bug (ankitects#3400)
  Add comment about the usage of the input field in the statistics page (ankitects#3394) (ankitects#3398)
  Possible to show “last” subdeck name in Browser? (ankitects#3387)
twwn pushed a commit to twwn/anki that referenced this pull request Sep 22, 2024
* elide middle of deck names

* Update CONTRIBUTORS

* made elide mode enum

* add elide mode field

* fix enum number

* remove dataclass decorator

* Update CONTRIBUTORS

* format rust code

* Update CONTRIBUTORS

* formatting

* Update CONTRIBUTORS

* fix type hint

* Update CONTRIBUTORS
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.

Possible to show “last” subdeck name in Browser?
3 participants