Compare commits
2 Commits
001cf5fa57
...
46a0466ff4
Author | SHA1 | Date |
---|---|---|
PS | 46a0466ff4 | |
PS | 24f7f66a24 |
4
TODO.md
4
TODO.md
|
@ -10,12 +10,14 @@ PRIME DIRECTIVE: SIMPLIFY
|
|||
[] Look into removing *keyboard* buffer - seems like over long sessions, that could get out of hand
|
||||
- good first step: print out the memory footprint of this buffer when we exit 4coder, just so we can see what it's taking up
|
||||
[] multi cursor editing
|
||||
[] matching curly brace highlight
|
||||
|
||||
[] yeet sheet
|
||||
|
||||
## Investigations
|
||||
[] What are fade ranges? Do we need them?
|
||||
|
||||
# DONE
|
||||
[x] matching curly brace highlight
|
||||
[x] when buffers have the same filename, a short name is appended. I'd prefer to append the path relative to the project, and if the file is outside the project, append the full path.
|
||||
[x] reload dirty files if there are no local edits to them automatically
|
||||
[x] remove audio (search @Remove)
|
||||
|
|
|
@ -19,13 +19,11 @@ string_from_file_name(Editing_File_Name *name){
|
|||
internal void
|
||||
file_edit_positions_set_cursor(File_Edit_Positions *edit_pos, i64 pos){
|
||||
edit_pos->cursor_pos = pos;
|
||||
edit_pos->last_set_type = EditPos_CursorSet;
|
||||
}
|
||||
|
||||
internal void
|
||||
file_edit_positions_set_scroll(File_Edit_Positions *edit_pos, Buffer_Scroll scroll){
|
||||
edit_pos->scroll = scroll;
|
||||
edit_pos->last_set_type = EditPos_ScrollSet;
|
||||
}
|
||||
|
||||
internal void
|
||||
|
|
|
@ -12,14 +12,7 @@
|
|||
#if !defined(FRED_FILE_H)
|
||||
#define FRED_FILE_H
|
||||
|
||||
typedef i32 Edit_Pos_Set_Type;
|
||||
enum{
|
||||
EditPos_None,
|
||||
EditPos_CursorSet,
|
||||
EditPos_ScrollSet
|
||||
};
|
||||
struct File_Edit_Positions{
|
||||
Edit_Pos_Set_Type last_set_type;
|
||||
Buffer_Scroll scroll;
|
||||
i64 cursor_pos;
|
||||
};
|
||||
|
|
|
@ -450,7 +450,6 @@ view_set_cursor_and_scroll(Thread_Context *tctx, Models *models, View *view, i64
|
|||
Vec2_f32 p = view_relative_xy_of_pos(tctx, models, view, cursor.line, pos);
|
||||
view->preferred_x = p.x;
|
||||
file_edit_positions_set_scroll(&edit_pos, scroll);
|
||||
edit_pos.last_set_type = EditPos_None;
|
||||
view_set_edit_pos(view, edit_pos);
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ use_scope_highlight = true;
|
|||
use_paren_helper = true;
|
||||
use_comment_keywords = true;
|
||||
lister_whole_word_backspace_when_modified = true;
|
||||
show_line_number_margins = false;
|
||||
show_line_number_margins = true;
|
||||
enable_output_wrapping = false;
|
||||
|
||||
enable_undo_fade_out = false;
|
||||
|
|
|
@ -32,7 +32,7 @@ defcolor_highlight_junk = 0xFF3A0000;
|
|||
defcolor_highlight_white = 0xFF003A3A;
|
||||
defcolor_paste = 0xFFDDEE00;
|
||||
defcolor_undo = 0xFF00DDEE;
|
||||
defcolor_back_cycle = { defcolor_back, defcolor_back, defcolor_back, defcolor_back, defcolor_back, defcolor_back, defcolor_back, defcolor_back, defcolor_back, defcolor_back, defcolor_back};
|
||||
defcolor_back_cycle = { 0xff282828, 0xff323232, 0xff3C3C3C, defcolor_back, };
|
||||
defcolor_text_cycle = { 0xFFA00000, 0xFF00A000, 0xFF0030B0, 0xFFA0A000 };
|
||||
defcolor_line_numbers_back = defcolor_back;
|
||||
defcolor_line_numbers_text = 0xFF404040;
|
||||
|
|
Loading…
Reference in New Issue