An extensible 4coder startup screen.
// Include the dashboard cpp file within your custom_layer
#include "../packages/dashboard/dashboard.cpp"
// then add the following at the end of your custom_render_buffer function
if(buffer == dashboard_buffer_id) {
draw_dashboard_extras(app, text_layout_id, face_id);
}
If you want the dashboard to open on 4coder startup, you'll need to add the following as well.
// Add the following funcion to your custom startup (taken from default_startup)
dashboard_open(app);
// and replace the BindCore with your custom startup within your keybinding layer
//BindCore(default_startup, CoreCode_Startup);
BindCore(/* your custom startup function*/, CoreCode_Startup);
The dashboard view by default will look within the root 4ed.exe folder for the dashboard folder. Within this folder it will automatically load the 4 named files:
- agenda
- bookmarks
- project
- recent
Command | Action |
---|---|
dashboard_open | Opens the dashboard buffer in the currently active view |
Shortcut | Action |
---|---|
Return | Try to open file or load project under cursor |
r | Jump to first item under recent files group |
m | Jump to first item under bookmarks group |
p | Jump to first item under project group |
a | Jump to first item under agenda group |
To contribute your changes to this package, please do the following:
- Fork the repo
- Clone a local copy
- Make your changes
- Push and create your PR