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

Macos support #652

Merged
merged 55 commits into from
Dec 9, 2023
Merged

Macos support #652

merged 55 commits into from
Dec 9, 2023

Conversation

psych3r
Copy link
Contributor

@psych3r psych3r commented Dec 8, 2023

Closes #34

Checklist

  • Add documentation to docs/config.adoc
    • [ yes ] Yes or N/A
  • Add example and basic docs to cfg_samples/kanata.kbd
    • [ N/A ] Yes or N/A
  • Update error messages
    • [ yes ] Yes or N/A
  • Added tests, or did manual testing
    • [ yes ] Yes

parser/src/keys/mod.rs Outdated Show resolved Hide resolved
src/kanata/mod.rs Outdated Show resolved Hide resolved
@devcarbon-com
Copy link

Just wanted to stop by to say how excited I am to see this! Thank you very much for working on it.

src/oskbd/macos.rs Show resolved Hide resolved
.gitmodules Outdated Show resolved Hide resolved
/// Send using C-S-u + <unicode hex number> + spc
pub fn send_unicode(&mut self, c: char) -> Result<(), io::Error> {
log::debug!("sending unicode {c}");
todo!();
Copy link
Owner

Choose a reason for hiding this comment

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

It's also fine to not implement this yet - maybe macos doesn't even have any unicode output solution?

If left unimplemented, I wonder if it's better to have a log::error! call rather than panic with a todo... I don't feel too strongly either way for now.

src/oskbd/macos.rs Outdated Show resolved Hide resolved
@fcoury
Copy link

fcoury commented Dec 8, 2023

I attempted to build it on the latest macOS version on a M1 and got this error:

  = note: mold: error: duplicate symbol: /Users/fcoury/code/kanata/target/debug/deps/libkarabiner_driverkit-6c609be6a9b5b956.rlib(driverkit.o): /Users/fcoury/code/kanata/target/debug/deps/kanata-78c6d0a3c4c667ac.5ayet8vzdybnztwm.rcgu.o: _main
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

Not sure if relevant to the PR or just something on my machine. I am using the sold linker.

UPDATE: Builds fine if I don't use the sold linker.

@psych3r psych3r requested review from rszyma and jtroo December 8, 2023 16:19
README.md Outdated Show resolved Hide resolved
docs/config.adoc Outdated Show resolved Hide resolved
docs/config.adoc Outdated Show resolved Hide resolved
docs/config.adoc Outdated Show resolved Hide resolved
docs/config.adoc Outdated Show resolved Hide resolved
parser/src/cfg/defcfg.rs Outdated Show resolved Hide resolved
Copy link
Owner

@jtroo jtroo left a comment

Choose a reason for hiding this comment

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

Thanks for the great work!

@jtroo jtroo merged commit 2090665 into jtroo:main Dec 9, 2023
3 checks passed
@jtroo jtroo mentioned this pull request May 27, 2024
1 task
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.

Add MacOS support
5 participants