From 6386474ac8a4b113d5c9b4aa2b03104b7f219371 Mon Sep 17 00:00:00 2001 From: Federico Igne Date: Tue, 23 Jan 2024 18:26:50 +0100 Subject: refarctor: rename project to 'sandy' --- bin/dune | 4 ++-- bin/main.ml | 2 +- dune-project | 4 ++-- flake.nix | 2 +- lib/dune | 2 +- lib/editor.ml | 2 +- sand.opam | 28 ---------------------------- sandy.opam | 28 ++++++++++++++++++++++++++++ test/dune | 2 +- test/test_sand.ml | 0 test/test_sandy.ml | 0 11 files changed, 37 insertions(+), 37 deletions(-) delete mode 100644 sand.opam create mode 100644 sandy.opam delete mode 100644 test/test_sand.ml create mode 100644 test/test_sandy.ml diff --git a/bin/dune b/bin/dune index 87b4f4e..06a76ee 100644 --- a/bin/dune +++ b/bin/dune @@ -1,5 +1,5 @@ (executable - (public_name sand) + (public_name sandy) (name main) - (libraries sand) + (libraries sandy) (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 @@ -open Sand +open Sandy let () = 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 @@ (lang dune 3.7) -(name sand) +(name sandy) (generate_opam_files true) @@ -18,7 +18,7 @@ ; (documentation https://url/to/documentation) (package - (name sand) + (name sandy) (synopsis "A simple editor inspired by 'kilo'.") ; (description "A longer description") ; (tags diff --git a/flake.nix b/flake.nix index 6fdf260..8737458 100644 --- a/flake.nix +++ b/flake.nix @@ -9,7 +9,7 @@ let pkgs = import nixpkgs { inherit system; }; - package = "sand"; + package = "sandy"; on = opam-nix.lib.${system}; localPackagesQuery = builtins.mapAttrs (_: pkgs.lib.last) (on.listRepo (on.makeOpamRepo ./.)); diff --git a/lib/dune b/lib/dune index 6da5e0a..0594758 100644 --- a/lib/dune +++ b/lib/dune @@ -1,3 +1,3 @@ (library - (name sand) + (name sandy) (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 let welcome (r, c) = let open Text in let hfill = ' ' and vfill = Sequence.empty in - "Welcome to the sand editor!" |> String.to_list |> Sequence.of_list + "Welcome to the sandy editor!" |> String.to_list |> Sequence.of_list |> center ~fill:hfill c |> Sequence.singleton |> center ~fill:vfill r in let aux e = diff --git a/sand.opam b/sand.opam deleted file mode 100644 index c317b92..0000000 --- a/sand.opam +++ /dev/null @@ -1,28 +0,0 @@ -# This file is generated by dune, edit dune-project instead -opam-version: "2.0" -synopsis: "A simple editor inspired by 'kilo'." -authors: ["Federico Igne"] -homepage: "https://github.com/username/reponame" -bug-reports: "https://github.com/username/reponame/issues" -depends: [ - "ocaml" - "dune" {>= "3.7"} - "base" - "stdio" - "odoc" {with-doc} -] -build: [ - ["dune" "subst"] {dev} - [ - "dune" - "build" - "-p" - name - "-j" - jobs - "@install" - "@runtest" {with-test} - "@doc" {with-doc} - ] -] -dev-repo: "git+https://github.com/username/reponame.git" diff --git a/sandy.opam b/sandy.opam new file mode 100644 index 0000000..c317b92 --- /dev/null +++ b/sandy.opam @@ -0,0 +1,28 @@ +# This file is generated by dune, edit dune-project instead +opam-version: "2.0" +synopsis: "A simple editor inspired by 'kilo'." +authors: ["Federico Igne"] +homepage: "https://github.com/username/reponame" +bug-reports: "https://github.com/username/reponame/issues" +depends: [ + "ocaml" + "dune" {>= "3.7"} + "base" + "stdio" + "odoc" {with-doc} +] +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/username/reponame.git" diff --git a/test/dune b/test/dune index 718218c..f53385a 100644 --- a/test/dune +++ b/test/dune @@ -1,2 +1,2 @@ (test - (name test_sand)) + (name test_sandy)) diff --git a/test/test_sand.ml b/test/test_sand.ml deleted file mode 100644 index e69de29..0000000 diff --git a/test/test_sandy.ml b/test/test_sandy.ml new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3