diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ea8c4bf --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/target diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..6bbaf56 --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,11 @@ +[package] +name = "rude" +version = "0.1.0" +edition = "2021" + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[profile.release] +opt-level = 3 + +[dependencies] +sdl2 = { version = "0.35.2" } diff --git a/TODO.org b/TODO.org new file mode 100644 index 0000000..cfcca9f --- /dev/null +++ b/TODO.org @@ -0,0 +1,49 @@ +#+title: Todo List + +* Movement [0/3] +- [-] Arrow keys [1/4] + * [X] L/R (char/char) + * [ ] L/R (word/word) + * [ ] L/R (sentence/sentence) + * [ ] Up and down (line by line) +- [-] HOME and END keys [1/2] + * [X] Start to end of document + * [ ] Confine to line unless CTRL is pressed +- [ ] Mouse input + +* Editing [0/5] +- [ ] Type text +- [-] Remove text [3/6] + * [X] Character backspace + * [X] Character delete + * [X] Word backspace + * [ ] Word delete + * [ ] Sentence backspace + * [ ] Sentence delete +- [ ] Select text +- [ ] Cut, Copy, & Paste +- [ ] Undo / Redo + +* Rendering [1/6] +- [-] Text [1/3] + * [X] Redneck bitmap + * [ ] Refined bitmap (.otb format) + * [ ] Vector (.ttf, .otf, etc) +- [X] Cursor +- [ ] Selection +- [ ] Scaling/Zoom +- [ ] Scrolling +- [ ] Syntax Highlighting [/] + - [ ] Built-in basic Rust highlighting + +* Misc [0/3] +- [ ] Search [0/1] + - [ ] Regex support +- [ ] Replace [0/2] + - [ ] Regex support + - [ ] Sed style +- [ ] File handling [0/3] + - [ ] Open files + - [ ] Save files + - [ ] Save files as + - [ ] Folder handling (for projects) diff --git a/fonts/Monoid-Bold.ttf b/fonts/Monoid-Bold.ttf new file mode 100644 index 0000000..730c63d Binary files /dev/null and b/fonts/Monoid-Bold.ttf differ diff --git a/fonts/Monoid-Regular.ttf b/fonts/Monoid-Regular.ttf new file mode 100644 index 0000000..a09e9fa Binary files /dev/null and b/fonts/Monoid-Regular.ttf differ diff --git a/fonts/Terminus12x6.xcf b/fonts/Terminus12x6.xcf new file mode 100644 index 0000000..fa8b94a Binary files /dev/null and b/fonts/Terminus12x6.xcf differ diff --git a/fonts/Terminus14x8.data b/fonts/Terminus14x8.data new file mode 100644 index 0000000..705e9d6 Binary files /dev/null and b/fonts/Terminus14x8.data differ diff --git a/fonts/Terminus14x8.data.pal b/fonts/Terminus14x8.data.pal new file mode 100644 index 0000000..c34a7f3 Binary files /dev/null and b/fonts/Terminus14x8.data.pal differ diff --git a/fonts/Terminus14x8.xcf b/fonts/Terminus14x8.xcf new file mode 100644 index 0000000..a19099c Binary files /dev/null and b/fonts/Terminus14x8.xcf differ