forked from nix-community/home-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sioyek: enable multiple bindings for the same command
- Loading branch information
1 parent
3b5a8d3
commit bd87a34
Showing
6 changed files
with
64 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{ sioyek = ./sioyek-basic-configuration.nix; } |
36 changes: 36 additions & 0 deletions
36
tests/modules/programs/sioyek/sioyek-basic-configuration.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ config, pkgs, ... }: | ||
|
||
{ | ||
programs.sioyek = { | ||
enable = true; | ||
bindings = { | ||
"move_down" = "j"; | ||
"move_left" = "h"; | ||
"move_right" = "l"; | ||
"move_up" = "k"; | ||
"screen_down" = [ "d" "<C-d>" ]; | ||
"screen_up" = [ "u" "<C-u>" ]; | ||
}; | ||
config = { | ||
"dark_mode_background_color" = "0.0 0.0 0.0"; | ||
"dark_mode_contrast" = "0.8"; | ||
}; | ||
}; | ||
|
||
test.stubs.sioyek = { }; | ||
|
||
nmt = { | ||
description = "Sioyek basic setup with sample configuration"; | ||
script = '' | ||
assertFileExists home-files/.config/sioyek/prefs_user.config | ||
assertFileContent home-files/.config/sioyek/prefs_user.config ${ | ||
./test_prefs_user.config | ||
} | ||
assertFileExists home-files/.config/sioyek/keys_user.config | ||
assertFileContent home-files/.config/sioyek/keys_user.config ${ | ||
./test_keys_user.config | ||
} | ||
''; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
move_down j | ||
move_left h | ||
move_right l | ||
move_up k | ||
screen_down d | ||
screen_down <C-d> | ||
screen_up u | ||
screen_up <C-u> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
dark_mode_background_color 0.0 0.0 0.0 | ||
dark_mode_contrast 0.8 |