better doc
This commit is contained in:
parent
e2f995dee9
commit
e1dcf6748e
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "calcifer"
|
||||
version = "1.1.0"
|
||||
version = "1.0.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
|
17
README.md
17
README.md
|
@ -2,19 +2,22 @@
|
|||
|
||||
My custom code editor (only the features I want inside) using egui and my own fork of egui_code_editor https://lib.rs/crates/egui_code_editor
|
||||
|
||||
# 1.0.0 :
|
||||
# 0.1.0 :
|
||||
|
||||
Added a File Tree
|
||||
Added Tabs
|
||||
Added an Embedded Terminal
|
||||
Added Syntax Highlighting
|
||||
Added Themes
|
||||
|
||||
# 1.0.1 :
|
||||
# 0.2.0 :
|
||||
|
||||
Fixed Terminal sterr output
|
||||
Fixed scroll between tabs
|
||||
Library subjugation (got the raw files of the egui_code_editor for some internal modifications)
|
||||
|
||||
# 1.0.2 :
|
||||
# 0.3.0 :
|
||||
|
||||
Added find and replace function
|
||||
Added multi line tab and shift+tab
|
||||
Added Ctrl+E : comment multiline
|
||||
|
@ -22,7 +25,8 @@ Fixed Ctr+Z (was already in library, tried to make my own, and then found the be
|
|||
Added indent recognition (when there is a line break, the indentation level is kept)
|
||||
|
||||
|
||||
# 1.0.3 :
|
||||
# 0.4.0 :
|
||||
|
||||
Added testing
|
||||
Added Ctrl+T : refresh current tab
|
||||
Added Time debug
|
||||
|
@ -34,7 +38,8 @@ Added terminal color
|
|||
Max tabs 8 => 20
|
||||
Max framerate => 30 fps (less cpu usage)
|
||||
|
||||
# 1.1.0 :
|
||||
# 1.0.0 :
|
||||
|
||||
Added confirm prompt if unsaved
|
||||
Async terminal !
|
||||
Better Ui
|
||||
Real Ui
|
|
@ -56,7 +56,7 @@ fn main() -> Result<(), eframe::Error> {
|
|||
}
|
||||
|
||||
eframe::run_native(
|
||||
&format!("Calcifer v{}{}", tools::version(), TITLE),
|
||||
&format!("Calcifer{}{}", tools::version(), TITLE),
|
||||
options,
|
||||
Box::new(move |_cc| Box::from(Calcifer::from_app_state(app_state))),
|
||||
)
|
||||
|
|
|
@ -113,6 +113,9 @@ pub fn format_path(path: &Path) -> String {
|
|||
|
||||
pub fn version() -> String {
|
||||
// Read the contents of the Cargo.toml file
|
||||
if !Path::new("Cargo.toml").exists() {
|
||||
return "".to_string()
|
||||
}
|
||||
let toml_content = fs::read_to_string("Cargo.toml").expect("Failed to read Cargo.toml");
|
||||
|
||||
// Parse the TOML content
|
||||
|
@ -123,7 +126,7 @@ pub fn version() -> String {
|
|||
if let Some(version) = package.get("version") {
|
||||
if let Some(version_string) = version.as_str() {
|
||||
println!("Version: {}", version_string);
|
||||
return version_string.to_string()
|
||||
return format!(" v{}", version_string)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue