From 21605207202a4e5befb73bf3fdc69d97522259d5 Mon Sep 17 00:00:00 2001 From: j4qfrost Date: Sun, 20 Jun 2021 12:38:15 -0700 Subject: [PATCH] Snapcraft Stable (#722) * Add option to install neovide from snap * add snapcraft to release * add snapcraft to release * move badge Co-authored-by: Brymer Meneses <68867487+brymer-meneses@users.noreply.github.com> --- README.md | 12 +++++++++--- snap/snapcraft.yaml | 4 ++-- src/editor/grid.rs | 12 ++++++------ src/editor/window.rs | 2 +- 4 files changed, 18 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 1df7b41..b9cd383 100644 --- a/README.md +++ b/README.md @@ -198,6 +198,15 @@ REGEX=$(printf 's/{url}/&\#branch=%s/g' '') sed "$REGEX" PKGBUILD makepkg -si ``` +#### With Snap +Neovide is also available in the Snap Store. You can install it +using the command below. + +``` +snap install neovide +``` +[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-white.svg)](https://snapcraft.io/neovide) + #### From source 1. Install necessary dependencies (adjust for your preferred package manager) @@ -235,6 +244,3 @@ makepkg -si ### Linux-specific - If you recieve errors complaining about DRI3 settings, please reference issue [#44](https://github.com/Kethku/neovide/issues/44#issuecomment-578618052). - -[![Get it from the Snap Store](https://snapcraft.io/static/images/badges/en/snap-store-white.svg)](https://snapcraft.io/neovide) - diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index 6906a83..5703d54 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -1,12 +1,12 @@ name: neovide # you probably want to 'snapcraft register ' base: core18 # the base snap is the execution environment for this snap -version: "0.7.1+git" +version: "0.7.0+git" summary: The snappiest vim editor you are likely to find. description: | This is a simple graphical user interface for Neovim. Where possible there are some graphical improvements, but it should act functionally like the terminal UI. -grade: devel # must be 'stable' to release into candidate/stable channels +grade: stable # must be 'stable' to release into candidate/stable channels confinement: strict # use 'strict' once you have the right plugs and slots build-packages: - cmake diff --git a/src/editor/grid.rs b/src/editor/grid.rs index 604c45b..9fc4bbc 100644 --- a/src/editor/grid.rs +++ b/src/editor/grid.rs @@ -127,7 +127,7 @@ mod tests { } #[test] - fn new_constructsGrid() { + fn new_constructs_grid() { let context = Context::new(); // RUN FUNCTION @@ -141,7 +141,7 @@ mod tests { } #[test] - fn getCell_returnsExpectedCell() { + fn get_cell_returns_expected_cell() { let context = Context::new(); let mut character_grid = CharacterGrid::new(context.size); @@ -162,7 +162,7 @@ mod tests { } #[test] - fn getCellMut_modifiersGridProperly() { + fn get_cell_mut_modifiers_grid_properly() { let context = Context::new(); let mut character_grid = CharacterGrid::new(context.size); @@ -189,7 +189,7 @@ mod tests { } #[test] - fn setAllCharacters_setsAllCellsToGivenCharacter() { + fn set_all_characters_sets_all_cells_to_given_character() { let context = Context::new(); let grid_cell = ( "foo".to_string(), @@ -206,7 +206,7 @@ mod tests { } #[test] - fn clear_emptiesBuffer() { + fn clear_empties_buffer() { let context = Context::new(); let mut character_grid = CharacterGrid::new(context.size); @@ -228,7 +228,7 @@ mod tests { } #[test] - fn resize_clearsAndResizesGrid() { + fn resize_clears_and_resizes_grid() { let context = Context::new(); let mut character_grid = CharacterGrid::new(context.size); let (width, height) = ( diff --git a/src/editor/window.rs b/src/editor/window.rs index 9fd6476..ba5f8bf 100644 --- a/src/editor/window.rs +++ b/src/editor/window.rs @@ -368,7 +368,7 @@ mod tests { } #[test] - fn windowSeparator_modifiesGridAndSendsDrawCommand() { + fn window_separator_modifies_grid_and_sends_draw_command() { let (batched_receiver, batched_sender) = build_test_channels(); let mut window = Window::new(1, 114, 64, None, 0.0, 0.0, batched_sender.clone()); batched_sender