Skip to content

Conversation

@bjoaquinc
Copy link
Contributor

@bjoaquinc bjoaquinc commented Apr 15, 2025

📝 Summary

Partially resolves #4163
Screenshot 2025-04-15 at 6 56 22 PM
Next PR will add this functionality to hotkeys.tsx

🔍 Description of Changes

Created collapseAllColumns and expandAllColumns hooks then added them to the notebook actions menu.

📋 Checklist

  • I have read the contributor guidelines.
  • For large changes, or changes that affect the public API: this change was discussed or approved through an issue, on Discord, or the community discussions (Please provide a link if applicable).
  • I have added tests for the changes made.
  • I have run the code and verified that it works as expected.

📜 Reviewers

@mscolnick

@vercel
Copy link

vercel bot commented Apr 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2025 1:49am
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2025 1:49am

@github-actions
Copy link

github-actions bot commented Apr 15, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@bjoaquinc
Copy link
Contributor Author

I have read the CLA Document and I hereby sign the CLA

Copy link
Contributor

@mscolnick mscolnick left a comment

Choose a reason for hiding this comment

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

great work!

@mscolnick mscolnick merged commit fa2456a into marimo-team:main Apr 16, 2025
34 checks passed
@bjoaquinc bjoaquinc deleted the new-keyboard-shortcuts branch April 16, 2025 02:14
@github-actions
Copy link

🚀 Development release published. You may be able to view the changes at https://marimo.app?v=0.12.10-dev21

dmadisetti pushed a commit that referenced this pull request Apr 17, 2025
…4550)

## 📝 Summary

<!--
Provide a concise summary of what this pull request is addressing.

If this PR fixes any issues, list them here by number (e.g., Fixes
#123).
-->

Partially resolves #4163 
<img width="323" alt="Screenshot 2025-04-15 at 6 56 22 PM"
src="https://github.com/user-attachments/assets/45a2ef2a-2351-4cff-a420-6d77b50901e3"
/>
Next PR will add this functionality to hotkeys.tsx

## 🔍 Description of Changes

<!--
Detail the specific changes made in this pull request. Explain the
problem addressed and how it was resolved. If applicable, provide before
and after comparisons, screenshots, or any relevant details to help
reviewers understand the changes easily.
-->

Created collapseAllColumns and expandAllColumns hooks then added them to
the notebook actions menu.

## 📋 Checklist

- [x] I have read the [contributor
guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md).
- [x] For large changes, or changes that affect the public API: this
change was discussed or approved through an issue, on
[Discord](https://marimo.io/discord?ref=pr), or the community
[discussions](https://github.com/marimo-team/marimo/discussions) (Please
provide a link if applicable).
- [ ] I have added tests for the changes made.
- [x] I have run the code and verified that it works as expected.

## 📜 Reviewers

<!--
Tag potential reviewers from the community or maintainers who might be
interested in reviewing this pull request.

Your PR will be reviewed more quickly if you can figure out the right
person to tag with @ -->

@mscolnick

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
mscolnick pushed a commit that referenced this pull request May 5, 2025
## 📝 Summary

<!--
Provide a concise summary of what this pull request is addressing.

If this PR fixes any issues, list them here by number (e.g., Fixes
#123).
-->
Updated useSectionCollapse to use collapseAllCells and expandAllCells.
Partially resolves #4163 by fixing useSectionCollapse bugs.

## 🔍 Description of Changes

<!--
Detail the specific changes made in this pull request. Explain the
problem addressed and how it was resolved. If applicable, provide before
and after comparisons, screenshots, or any relevant details to help
reviewers understand the changes easily.
-->
- Updates #4550 implementation by using expandAllCells and
collapseAllCells rather than running expandCell and collapseCell in a
loop
- Fixes consecutive react renders issue
- Fixes Node not in tree errors

## 📋 Checklist

- [x] I have read the [contributor
guidelines](https://github.com/marimo-team/marimo/blob/main/CONTRIBUTING.md).
- [x] For large changes, or changes that affect the public API: this
change was discussed or approved through an issue, on
[Discord](https://marimo.io/discord?ref=pr), or the community
[discussions](https://github.com/marimo-team/marimo/discussions) (Please
provide a link if applicable).
- [x] I have added tests for the changes made.
- [x] I have run the code and verified that it works as expected.

## 📜 Reviewers

<!--
Tag potential reviewers from the community or maintainers who might be
interested in reviewing this pull request.

Your PR will be reviewed more quickly if you can figure out the right
person to tag with @ -->

@mscolnick
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.

New keyboard shortcuts and config file options

2 participants