Skip to content

Instantly share code, notes, and snippets.

@hunterkepley
Created May 9, 2020 05:58
Show Gist options
  • Save hunterkepley/25ca620c6edd0a98514ba12f7381a4d6 to your computer and use it in GitHub Desktop.
Save hunterkepley/25ca620c6edd0a98514ba12f7381a4d6 to your computer and use it in GitHub Desktop.
Basic project file for the 4coder text editor
version(1);
project_name = "Test";
patterns = {
"*.cpp",
".hpp",
".bat",
".4coder",
};
blacklist_patterns = {
".*",
};
load_paths_win = {
{ ".", .relative = true, .recursive = true, }
};
load_paths = {
{ load_paths_win, .os = "win" },
{ .os = "linux" },
{ .os = "mac" },
};
command_list = {
{ .name = "build",
.out = "*compilation*", .footer_panel = true, .save_dirty_files = true, .cursor_at_end = false,
.cmd = { { "build.bat", .os = "win" },
{ "build.sh", .os = "linux" },
{ "build.sh", .os = "mac" },
},
},
{ .name = "run",
.out = "*run*", .footer_panel = false, .save_dirty_files = false, .cursor_at_end = true,
.cmd = { { "a.out", .os = "win" },
{ "a.out", .os = "linux" },
{ "a.out", .os = "mac" },
},
},
};
fkey_command[1] = "build";
fkey_command[2] = "run";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment