Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
1974fe9033
7 changed files with 73 additions and 6 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
@ -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"
|
||||
|
|
|
@ -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++;
|
||||
|
|
|
@ -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),*])
|
||||
};
|
||||
|
||||
(
|
||||
|
|
|
@ -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.
|
||||
|
|
65
runtime/themes/peachpuff.toml
Normal file
65
runtime/themes/peachpuff.toml
Normal file
|
@ -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"
|
|
@ -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"] }
|
||||
|
|
|
@ -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" }
|
||||
|
|
Loading…
Add table
Reference in a new issue