Compare commits
No commits in common. "1fdfd41a4c49a4d65a24ea0df3ff3326e3fbe2f8" and "e28169458ecdeaef564d6dd17b8968e53a3626a6" have entirely different histories.
1fdfd41a4c
...
e28169458e
1 changed files with 2 additions and 6 deletions
|
@ -273,7 +273,6 @@ pub fn main() anyerror!void {
|
||||||
}
|
}
|
||||||
|
|
||||||
var have_project = false;
|
var have_project = false;
|
||||||
var have_file = false;
|
|
||||||
if (args.project) |project| {
|
if (args.project) |project| {
|
||||||
try tui_proc.send(.{ "cmd", "open_project_dir", .{project} });
|
try tui_proc.send(.{ "cmd", "open_project_dir", .{project} });
|
||||||
have_project = true;
|
have_project = true;
|
||||||
|
@ -287,16 +286,13 @@ pub fn main() anyerror!void {
|
||||||
try tui_proc.send(.{ "cmd", "open_project_dir", .{dir.path} });
|
try tui_proc.send(.{ "cmd", "open_project_dir", .{dir.path} });
|
||||||
have_project = true;
|
have_project = true;
|
||||||
},
|
},
|
||||||
else => {
|
else => {},
|
||||||
have_file = true;
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
for (links.items) |link| {
|
for (links.items) |link| {
|
||||||
try file_link.navigate(tui_proc.ref(), &link);
|
try file_link.navigate(tui_proc.ref(), &link);
|
||||||
}
|
}
|
||||||
|
if (links.items.len == 0) {
|
||||||
if (!have_file) {
|
|
||||||
if (!have_project)
|
if (!have_project)
|
||||||
try tui_proc.send(.{ "cmd", "open_project_cwd" });
|
try tui_proc.send(.{ "cmd", "open_project_cwd" });
|
||||||
try tui_proc.send(.{ "cmd", "show_home" });
|
try tui_proc.send(.{ "cmd", "show_home" });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue