Skip to content

Commit ff7721d

Browse files
feat: add selection toolbar window for mac (#980)
* feat: add selection window page * fix: chat input * feat: add selection page * chore: add * chore: test * feat: add * feat: add store * feat: add selection settings * chore: remove unused code * docs: add release note * docs: add release note * chore: format code * chore: format code * fix: copy error * disable hashbrown default feature * Enable unstable feature allocator_api To make coco-app compile in CI: ``` --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hashbrown-0.15.5/src/raw/mod.rs:3856:12 | 3856 | impl<T, A: Allocator> RawIntoIter<T, A> { | ^^^^^^^^^ | = note: see issue #32838 <rust-lang/rust#32838> for more information = help: add `#![feature(allocator_api)]` to the crate attributes to enable = note: this compiler was built on 2025-06-25; consider upgrading it if it is out of date ``` I don't know why it does not compile, feature `allocator-api2` is enabled for `hashbrown 0.15.5`, so technically [1] it should not use the allocator APIs from the std. According to [2], enabling the `nightly` feature of `allocator-api2` may cause this issue as well, but it is not enabled in our case either. Anyway, enabling `#![feature(allocator_api)]` should make it work. [1]: https://github.com/rust-lang/hashbrown/blob/b751eef8e99ccf3652046ef4a9e1ec47c1bfb78d/src/raw/alloc.rs#L26-L47 [2]: rust-lang/hashbrown#564 * put it in main.rs * format main.rs * Enable default-features for hashbrown 0.15.5 * format main.rs * enable feature allocator-api2 * feat: add selection set config * fix: selection setting * fix: ci error * fix: ci error * fix: ci error * fix: ci error * merge: merge main * fix: rust code warn * fix: rust code error * fix: rust code error * fix: selection settings * style: selection styles * style: selection styles --------- Co-authored-by: Steve Lau <stevelauc@outlook.com>
1 parent fc642ac commit ff7721d

37 files changed

Lines changed: 3057 additions & 915 deletions

.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"dyld",
1515
"elif",
1616
"errmsg",
17+
"frontmost",
1718
"fullscreen",
1819
"fulltext",
1920
"headlessui",
@@ -40,6 +41,7 @@
4041
"nowrap",
4142
"nspanel",
4243
"nsstring",
44+
"objc",
4345
"overscan",
4446
"partialize",
4547
"patchelf",

docs/content.en/docs/release-notes/_index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Information about release notes of Coco App is provided here.
1313

1414
### 🚀 Features
1515

16+
- feat: add selection toolbar window for mac #980
1617
- feat: add a heartbeat worker to check Coco server availability #988
1718

1819
### 🐛 Bug fix

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
},
2020
"dependencies": {
2121
"@headlessui/react": "^2.2.2",
22+
"@radix-ui/react-separator": "^1.1.8",
2223
"@radix-ui/react-slot": "^1.2.3",
2324
"@tauri-apps/api": "^2.5.0",
2425
"@tauri-apps/plugin-autostart": "~2.2.0",
26+
"@tauri-apps/plugin-clipboard-manager": "~2.3.2",
2527
"@tauri-apps/plugin-deep-link": "^2.2.1",
2628
"@tauri-apps/plugin-dialog": "^2.2.1",
2729
"@tauri-apps/plugin-global-shortcut": "~2.0.0",

pnpm-lock.yaml

Lines changed: 73 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)