Misc changes
This commit is contained in:
@@ -1,15 +1,16 @@
|
|||||||
- What precise workflow do I need for me to be viable to use this?
|
- What precise workflow do I need for me to be viable to use this?
|
||||||
- From a user (novice) point of view, how does it look like?
|
- From a user (novice) point of view, how does it look like?
|
||||||
|
|
||||||
|
Use session 2
|
||||||
|
- Add ctrl-tab to go back to last buffer
|
||||||
|
- I can't change browser currently, maybe syntax like :Set InternetBrowser "firefox"
|
||||||
|
- BUILD annoying: Console or use the other window / the window which is already being used
|
||||||
|
|
||||||
Debug session:
|
Debug session:
|
||||||
- Should highlight main buffer when clicking on status?
|
- Should highlight main buffer when clicking on status?
|
||||||
- Report errorf - use coroutine dialogs
|
- Report errorf - use coroutine dialogs
|
||||||
- Replace in render layer also
|
- Replace in render layer also
|
||||||
|
|
||||||
Use session 1:
|
|
||||||
- OpenCommand in command window freezes the app
|
|
||||||
- :Rename command that will ask the user
|
|
||||||
|
|
||||||
New UI Session
|
New UI Session
|
||||||
- Cleanup String16/String with Open and EvalCommands after lua refactor
|
- Cleanup String16/String with Open and EvalCommands after lua refactor
|
||||||
- Uneditable buffers ?
|
- Uneditable buffers ?
|
||||||
|
|||||||
@@ -401,14 +401,25 @@ BSet ExecBuild(String cmd) {
|
|||||||
BSet main = GetBSet(LastActiveLayoutWindowID);
|
BSet main = GetBSet(LastActiveLayoutWindowID);
|
||||||
NextActiveWindowID = main.window->id;
|
NextActiveWindowID = main.window->id;
|
||||||
View *view = WindowOpenBufferView(main.window, BuildBuffer->name);
|
View *view = WindowOpenBufferView(main.window, BuildBuffer->name);
|
||||||
|
SelectRange(view, Range{});
|
||||||
ResetBuffer(BuildBuffer);
|
ResetBuffer(BuildBuffer);
|
||||||
Exec(view->id, true, cmd, WorkDir);
|
Exec(view->id, false, cmd, WorkDir); // NOTE: IN CASE WE MOVE THIS TO CONSOLE WINDOW, MAKE SURE TO SWITCH HERE the scrolling
|
||||||
main.window->active_goto_list = view->id;
|
main.window->active_goto_list = view->id;
|
||||||
main.window->goto_list_pos = 0;
|
main.window->goto_list_pos = 0;
|
||||||
return main;
|
return main;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Command_SaveAll() {
|
||||||
|
For(Buffers) {
|
||||||
|
// NOTE: file_mod_time is only set when buffer got read or written to disk already so should be saved
|
||||||
|
if (it->file_mod_time) {
|
||||||
|
SaveBuffer(it);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} RegisterCommand(Command_SaveAll, "ctrl-shift-s");
|
||||||
|
|
||||||
void Command_Build() {
|
void Command_Build() {
|
||||||
|
Command_SaveAll();
|
||||||
#if OS_WINDOWS
|
#if OS_WINDOWS
|
||||||
ExecBuild("build.bat");
|
ExecBuild("build.bat");
|
||||||
#else
|
#else
|
||||||
@@ -446,6 +457,11 @@ ResolvedOpen ResolveOpen(Allocator scratch, String path, String meta) {
|
|||||||
|
|
||||||
// Shell
|
// Shell
|
||||||
{
|
{
|
||||||
|
if (StartsWith(path, "!!")) {
|
||||||
|
result.kind = OpenKind_BackgroundExec;
|
||||||
|
result.path = Skip(path, 2);
|
||||||
|
return result;
|
||||||
|
}
|
||||||
if (StartsWith(path, "!")) {
|
if (StartsWith(path, "!")) {
|
||||||
result.kind = OpenKind_Exec;
|
result.kind = OpenKind_Exec;
|
||||||
result.path = Skip(path, 1);
|
result.path = Skip(path, 1);
|
||||||
@@ -614,14 +630,6 @@ void Command_Save() {
|
|||||||
SaveBuffer(active.buffer);
|
SaveBuffer(active.buffer);
|
||||||
} RegisterCommand(Command_Save, "ctrl-s");
|
} RegisterCommand(Command_Save, "ctrl-s");
|
||||||
|
|
||||||
void Command_SaveAll() {
|
|
||||||
For(Buffers) {
|
|
||||||
if (it->file_mod_time) {
|
|
||||||
SaveBuffer(it);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} RegisterCommand(Command_SaveAll, "ctrl-shift-s");
|
|
||||||
|
|
||||||
void Command_Reopen() {
|
void Command_Reopen() {
|
||||||
BSet main = GetBSet(LastActiveLayoutWindowID);
|
BSet main = GetBSet(LastActiveLayoutWindowID);
|
||||||
ReopenBuffer(main.buffer);
|
ReopenBuffer(main.buffer);
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ void StatusWindowUpdate() {
|
|||||||
// add separator at the end of buffer
|
// add separator at the end of buffer
|
||||||
if (!found_separator) {
|
if (!found_separator) {
|
||||||
SelectRange(title.view, GetBufferEndAsRange(title.buffer));
|
SelectRange(title.view, GetBufferEndAsRange(title.buffer));
|
||||||
ReplaceEx(scratch, title.view, u" | :Prev :Next");
|
ReplaceEx(scratch, title.view, u" | :Prev :Next :Close");
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace data up to separator with filename and stuff
|
// replace data up to separator with filename and stuff
|
||||||
|
|||||||
Reference in New Issue
Block a user