Improve load

This commit is contained in:
Krzosa Karol
2024-08-04 08:09:07 +02:00
parent 324e5e1ea1
commit e761761108
4 changed files with 11 additions and 2 deletions

View File

@@ -302,7 +302,12 @@ function GenericTextFileRule(_s)
end
-- other_random_filename
return GetCurrentBufferDir()..'/'..s
buffer_dir = GetCurrentBufferDir()
if buffer_dir:len() == 0 then
return s
else
return buffer_dir..'/'..s
end
end
line, col, _s = ExtractLineAndColumn(_s)

View File

@@ -153,6 +153,7 @@ String GetCurrentBufferName() {
String GetCurrentBufferDir() {
String buffer_name = GetCurrentBufferName();
String name = ChopLastSlash(buffer_name);
if (name.len == buffer_name.len) return {};
return name;
}

View File

@@ -159,10 +159,12 @@ void Update(const Event &event) {
}
HandleEvent(event);
ReloadLuaConfig();
For(Windows) if (it.is_title_bar) ReplaceTitleBarData(&it);
ReplaceDebugData();
// Switch active window
{
if (ActiveWindow.id != NextActiveWindow.id) {
Window *window = GetWindow(ActiveWindow);

View File

@@ -2,10 +2,10 @@
- page up and down should also scroll and leave you in exactly same scroll
- I think the way sublime text and we display line highlights is confusing with multiple cursors (line highlight can be confused with selection)
- switch to previous view (ctrl + tab)
- save location on open and allow for revert (buffer id? or buffer name? - buffer name can change, buffer id is harder to serialize, I guess if internal only then buffer id)
- delete till indent
- indent on enter
- maybe my mouse selection is wrong? seems like on double click lite and sublime start to enclosing words!!
- click 3 times to select line
- we could rewrite kill lines with simpler commands - extend selection to encompass lines->replace
- improve cursor movement, it's too clunky, too much stopping
@@ -34,6 +34,7 @@
- select space between parens,braces
- color parens, braces
- maybe my mouse selection is wrong? seems like on double click lite and sublime start to enclosing words!!
- Windows
- layout using a tree!!