Improve load
This commit is contained in:
@@ -302,7 +302,12 @@ function GenericTextFileRule(_s)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- other_random_filename
|
-- other_random_filename
|
||||||
return GetCurrentBufferDir()..'/'..s
|
buffer_dir = GetCurrentBufferDir()
|
||||||
|
if buffer_dir:len() == 0 then
|
||||||
|
return s
|
||||||
|
else
|
||||||
|
return buffer_dir..'/'..s
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
line, col, _s = ExtractLineAndColumn(_s)
|
line, col, _s = ExtractLineAndColumn(_s)
|
||||||
|
|||||||
@@ -153,6 +153,7 @@ String GetCurrentBufferName() {
|
|||||||
String GetCurrentBufferDir() {
|
String GetCurrentBufferDir() {
|
||||||
String buffer_name = GetCurrentBufferName();
|
String buffer_name = GetCurrentBufferName();
|
||||||
String name = ChopLastSlash(buffer_name);
|
String name = ChopLastSlash(buffer_name);
|
||||||
|
if (name.len == buffer_name.len) return {};
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -159,10 +159,12 @@ void Update(const Event &event) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
HandleEvent(event);
|
HandleEvent(event);
|
||||||
|
|
||||||
ReloadLuaConfig();
|
ReloadLuaConfig();
|
||||||
For(Windows) if (it.is_title_bar) ReplaceTitleBarData(&it);
|
For(Windows) if (it.is_title_bar) ReplaceTitleBarData(&it);
|
||||||
ReplaceDebugData();
|
ReplaceDebugData();
|
||||||
|
|
||||||
|
// Switch active window
|
||||||
{
|
{
|
||||||
if (ActiveWindow.id != NextActiveWindow.id) {
|
if (ActiveWindow.id != NextActiveWindow.id) {
|
||||||
Window *window = GetWindow(ActiveWindow);
|
Window *window = GetWindow(ActiveWindow);
|
||||||
|
|||||||
@@ -2,10 +2,10 @@
|
|||||||
- page up and down should also scroll and leave you in exactly same scroll
|
- 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)
|
- 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)
|
- 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
|
- delete till indent
|
||||||
- indent on enter
|
- 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
|
- click 3 times to select line
|
||||||
- we could rewrite kill lines with simpler commands - extend selection to encompass lines->replace
|
- we could rewrite kill lines with simpler commands - extend selection to encompass lines->replace
|
||||||
- improve cursor movement, it's too clunky, too much stopping
|
- improve cursor movement, it's too clunky, too much stopping
|
||||||
@@ -34,6 +34,7 @@
|
|||||||
- select space between parens,braces
|
- select space between parens,braces
|
||||||
- color parens, braces
|
- color parens, braces
|
||||||
|
|
||||||
|
- maybe my mouse selection is wrong? seems like on double click lite and sublime start to enclosing words!!
|
||||||
|
|
||||||
- Windows
|
- Windows
|
||||||
- layout using a tree!!
|
- layout using a tree!!
|
||||||
|
|||||||
Reference in New Issue
Block a user