diff options
author | Federico Igne <undyamon@disroot.org> | 2024-01-23 18:26:50 +0100 |
---|---|---|
committer | Federico Igne <undyamon@disroot.org> | 2024-01-23 18:26:50 +0100 |
commit | 6386474ac8a4b113d5c9b4aa2b03104b7f219371 (patch) | |
tree | 72af4c12f321547b4127b7a8a84e3282477f3547 | |
parent | 5c3864986f844a31e0b6dbeec48543dc6376cff6 (diff) | |
download | sandy-6386474ac8a4b113d5c9b4aa2b03104b7f219371.tar.gz sandy-6386474ac8a4b113d5c9b4aa2b03104b7f219371.zip |
refarctor: rename project to 'sandy'
-rw-r--r-- | bin/dune | 4 | ||||
-rw-r--r-- | bin/main.ml | 2 | ||||
-rw-r--r-- | dune-project | 4 | ||||
-rw-r--r-- | flake.nix | 2 | ||||
-rw-r--r-- | lib/dune | 2 | ||||
-rw-r--r-- | lib/editor.ml | 2 | ||||
-rw-r--r-- | sandy.opam (renamed from sand.opam) | 0 | ||||
-rw-r--r-- | test/dune | 2 | ||||
-rw-r--r-- | test/test_sandy.ml (renamed from test/test_sand.ml) | 0 |
9 files changed, 9 insertions, 9 deletions
@@ -1,5 +1,5 @@ | |||
1 | (executable | 1 | (executable |
2 | (public_name sand) | 2 | (public_name sandy) |
3 | (name main) | 3 | (name main) |
4 | (libraries sand) | 4 | (libraries sandy) |
5 | (modes exe byte)) | 5 | (modes exe byte)) |
diff --git a/bin/main.ml b/bin/main.ml index e763f70..c9ca884 100644 --- a/bin/main.ml +++ b/bin/main.ml | |||
@@ -1,4 +1,4 @@ | |||
1 | open Sand | 1 | open Sandy |
2 | 2 | ||
3 | let () = | 3 | let () = |
4 | let open Editor in | 4 | let open Editor in |
diff --git a/dune-project b/dune-project index cc3ce88..1cca4b6 100644 --- a/dune-project +++ b/dune-project | |||
@@ -1,6 +1,6 @@ | |||
1 | (lang dune 3.7) | 1 | (lang dune 3.7) |
2 | 2 | ||
3 | (name sand) | 3 | (name sandy) |
4 | 4 | ||
5 | (generate_opam_files true) | 5 | (generate_opam_files true) |
6 | 6 | ||
@@ -18,7 +18,7 @@ | |||
18 | ; (documentation https://url/to/documentation) | 18 | ; (documentation https://url/to/documentation) |
19 | 19 | ||
20 | (package | 20 | (package |
21 | (name sand) | 21 | (name sandy) |
22 | (synopsis "A simple editor inspired by 'kilo'.") | 22 | (synopsis "A simple editor inspired by 'kilo'.") |
23 | ; (description "A longer description") | 23 | ; (description "A longer description") |
24 | ; (tags | 24 | ; (tags |
@@ -9,7 +9,7 @@ | |||
9 | let | 9 | let |
10 | pkgs = import nixpkgs { inherit system; }; | 10 | pkgs = import nixpkgs { inherit system; }; |
11 | 11 | ||
12 | package = "sand"; | 12 | package = "sandy"; |
13 | on = opam-nix.lib.${system}; | 13 | on = opam-nix.lib.${system}; |
14 | localPackagesQuery = builtins.mapAttrs (_: pkgs.lib.last) | 14 | localPackagesQuery = builtins.mapAttrs (_: pkgs.lib.last) |
15 | (on.listRepo (on.makeOpamRepo ./.)); | 15 | (on.listRepo (on.makeOpamRepo ./.)); |
@@ -1,3 +1,3 @@ | |||
1 | (library | 1 | (library |
2 | (name sand) | 2 | (name sandy) |
3 | (libraries base stdio unix)) | 3 | (libraries base stdio unix)) |
diff --git a/lib/editor.ml b/lib/editor.ml index 230f13a..f8091b8 100644 --- a/lib/editor.ml +++ b/lib/editor.ml | |||
@@ -156,7 +156,7 @@ module Action = struct | |||
156 | let welcome (r, c) = | 156 | let welcome (r, c) = |
157 | let open Text in | 157 | let open Text in |
158 | let hfill = ' ' and vfill = Sequence.empty in | 158 | let hfill = ' ' and vfill = Sequence.empty in |
159 | "Welcome to the sand editor!" |> String.to_list |> Sequence.of_list | 159 | "Welcome to the sandy editor!" |> String.to_list |> Sequence.of_list |
160 | |> center ~fill:hfill c |> Sequence.singleton |> center ~fill:vfill r | 160 | |> center ~fill:hfill c |> Sequence.singleton |> center ~fill:vfill r |
161 | in | 161 | in |
162 | let aux e = | 162 | let aux e = |
@@ -1,2 +1,2 @@ | |||
1 | (test | 1 | (test |
2 | (name test_sand)) | 2 | (name test_sandy)) |
diff --git a/test/test_sand.ml b/test/test_sandy.ml index e69de29..e69de29 100644 --- a/test/test_sand.ml +++ b/test/test_sandy.ml | |||