diff --git a/Cargo.lock b/Cargo.lock index be724333..60e43f5f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2052,9 +2052,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.21.1" +version = "1.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d75b0bedcc4fe52caa0e03d9f1151a323e4aa5e2d78ba3580400cd3c9e2bc4bc" +checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" [[package]] name = "open" diff --git a/contrib/Helix.desktop b/contrib/Helix.desktop index 25d5c3b1..66682871 100644 --- a/contrib/Helix.desktop +++ b/contrib/Helix.desktop @@ -86,6 +86,6 @@ Keywords[ru]=текст;текстовый редактор; Keywords[sr]=Текст;едитор; Keywords[tr]=Metin;düzenleyici; Icon=helix -Categories=Utility;TextEditor; +Categories=Utility;TextEditor;ConsoleOnly StartupNotify=false MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; diff --git a/helix-term/src/keymap/macros.rs b/helix-term/src/keymap/macros.rs index 15d2aa53..9cddd825 100644 --- a/helix-term/src/keymap/macros.rs +++ b/helix-term/src/keymap/macros.rs @@ -90,7 +90,7 @@ macro_rules! keymap { }; (@trie [$($cmd:ident),* $(,)?]) => { - $crate::keymap::KeyTrie::Sequence(vec![$($crate::commands::Command::$cmd),*]) + $crate::keymap::KeyTrie::Sequence(vec![$($crate::commands::MappableCommand::$cmd),*]) }; ( diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 5015dbac..11431956 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -1880,7 +1880,6 @@ impl Editor { if !force && doc.is_modified() { return Err(CloseError::BufferModified(doc.display_name().into_owned())); } - let doc = self.documents.remove(&doc_id).unwrap(); // This will also disallow any follow-up writes self.saves.remove(&doc_id); @@ -1921,6 +1920,8 @@ impl Editor { } } + let doc = self.documents.remove(&doc_id).unwrap(); + // If the document we removed was visible in all views, we will have no more views. We don't // want to close the editor just for a simple buffer close, so we need to create a new view // containing either an existing document, or a brand new document. diff --git a/runtime/themes/peachpuff.toml b/runtime/themes/peachpuff.toml new file mode 100644 index 00000000..c38aee18 --- /dev/null +++ b/runtime/themes/peachpuff.toml @@ -0,0 +1,65 @@ +# Author : geonove <andre.novellini@gmail.com> +# License : Vim License + +"ui.menu" = { fg = "light-gray", bg = "gray" } +"ui.menu.selected" = { modifiers = ["reversed"] } +"ui.linenr" = "yellow" +"ui.popup" = { bg = "black" } +"ui.window" = { bg = "black" } +"ui.linenr.selected" = "light-yellow" +"ui.selection" = { fg = "gray", modifiers = ["reversed"] } +"ui.text.focus" = { fg = "black", bg = "white" } +"comment" = "light-green" +"comment.line" = "light-green" +"comment.block" = "red" +"comment.block.documentation" = "red" +"ui.statusline" = { fg = "black", bg = "light-cyan" } +"ui.statusline.inactive" = { fg = "gray", bg = "black" } +"ui.help" = { fg = "white", bg = "black" } +"ui.cursor" = { fg = "light-gray", modifiers = ["reversed"] } +"ui.cursor.primary" = { fg = "light-gray", modifiers = ["reversed"] } +"ui.virtual.whitespace" = "light-gray" +"ui.virtual.jump-label" = { fg = "blue", modifiers = ["bold", "underlined"] } +"ui.virtual.ruler" = { bg = "black" } +"variable" = "white" +"constant.numeric" = "red" +"constant" = "white" +"constant.builtin" = "red" +"attribute" = "yellow" +"type" = "green" +"type.builtin" = "cyan" +"ui.cursor.match" = { fg = "light-gray", modifiers = ["reversed"] } +"string" = "red" +"variable.other.member" = "white" +"constant.character.escape" = "light-cyan" +#"function.builtin" = "cyan" +#"function.method" = "cyan" +#"function.method.private" = "cyan" +"function" = "cyan" +"constructor" = "cyan" +"special" = "light-blue" +"keyword" = "yellow" +"keyword.control.import" = "magenta" +"label" = "white" +"namespace" = "white" + +"markup.heading" = "light-magenta" +"markup.list" = "light-red" +"markup.bold" = { fg = "light-yellow", modifiers = ["bold"] } +"markup.italic" = { fg = "light-magenta", modifiers = ["italic"] } +"markup.strikethrough" = { modifiers = ["crossed_out"] } +"markup.link.url" = { fg = "yellow", modifiers = ["underlined"] } +"markup.link.text" = "light-red" +"markup.quote" = "light-cyan" +"markup.raw" = "light-green" + +"diff.plus" = "light-green" +"diff.delta" = "yellow" +"diff.minus" = "light-red" + +"diagnostic" = { modifiers = ["underlined"] } +"info" = "light-blue" +"hint" = "gray" +"debug" = "gray" +"warning" = "yellow" +"error" = "light-red" diff --git a/runtime/themes/spacebones_light.toml b/runtime/themes/spacebones_light.toml index 1d744019..9736ba35 100644 --- a/runtime/themes/spacebones_light.toml +++ b/runtime/themes/spacebones_light.toml @@ -64,6 +64,7 @@ "ui.help" = { bg = "bg1", fg = "fg1" } "ui.text" = { fg = "fg1" } "ui.text.focus" = { fg = "fg1", modifiers = ["bold"] } +"ui.text.directory" = { fg = "theme_blue" } "ui.selection" = { bg = "hl2" } "ui.selection.primary" = { bg = "hl1" } "ui.cursor.primary" = { modifiers = ["reversed"] } diff --git a/runtime/themes/tokyonight.toml b/runtime/themes/tokyonight.toml index 08e7ce3a..e95b1178 100644 --- a/runtime/themes/tokyonight.toml +++ b/runtime/themes/tokyonight.toml @@ -85,7 +85,7 @@ hint = { fg = "hint" } "ui.statusline.normal" = { bg = "blue", fg = "bg", modifiers = ["bold"] } "ui.statusline.insert" = { bg = "light-green", fg = "bg", modifiers = ["bold"] } "ui.statusline.select" = { bg = "magenta", fg = "bg", modifiers = ["bold"] } -"ui.text" = { bg = "bg", fg = "fg" } +"ui.text" = { fg = "fg" } "ui.text.focus" = { bg = "bg-focus" } "ui.text.inactive" = { fg = "comment", modifiers = ["italic"] } "ui.text.info" = { bg = "bg-menu", fg = "fg" }