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

bug: targets.darwin.keybindings not generating correct output? #6120

Open
2 tasks done
ok-nick opened this issue Nov 22, 2024 · 0 comments
Open
2 tasks done

bug: targets.darwin.keybindings not generating correct output? #6120

ok-nick opened this issue Nov 22, 2024 · 0 comments
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@ok-nick
Copy link

ok-nick commented Nov 22, 2024

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

Hi, I'm having trouble using the targets.darwin.keybindings setting. It doesn't work with the home-manager generated output, but it does when I convert it to a different format as shown below.

Using the settings:

targets.darwin.keybindings = {
  # ctrl + left arrow
  "^\\UF702" = "moveWordBackward:";
  # ctrl + right arrow
  "^\\UF703" = "moveWordForward:";
};

Generates the following output:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>^\UF702</key>
	<string>moveWordBackward:</string>
	<key>^\UF703</key>
	<string>moveWordForward:</string>
</dict>
</plist>

Which doesn't work. If I set the file content to:

{
	"^\UF702" = "moveWordBackward:";
	"^\UF703" = "moveWordForward:";
}

It works perfectly fine. Is the wrong type of output being generated?

Maintainer CC

No response

System information

/nix/store/0c5hnhrh7sb6gsz1rjka2zhv48sfp9wf-stdenv-darwin
copying path '/nix/store/0c5hnhrh7sb6gsz1rjka2zhv48sfp9wf-stdenv-darwin' from 'https://cache.nixos.org'...
 - system: `"aarch64-darwin"`
 - host os: `Darwin 24.1.0, macOS 15.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.24.9`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/store/zq2axpgzd5kykk1v446rkffj3bxa2m2h-source`
@ok-nick ok-nick added bug triage Issues or feature request that have not been triaged yet labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

4 participants