WIP: feat: implement workspaces support #12

Draft
fortressia wants to merge 12 commits from feat/workspaces into main

12 Commits (main)

Author SHA1 Message Date
Nefo Fortressia 7bb8a5eef5
refactor: split workspace.rs into different files
workspace.rs was  a very spaghetti file.
2021-12-18 14:27:20 +07:00
Nefo Fortressia 6b3b45a1bc
feat: partially implement workspace opening
This implementation will not work atm.

We still need to implement a connection between the main thread and the Tokio runtime.

rt.spawn() requires the future to implement Sync, which open_folder() does not.

This is because it contains pointers to GTK4 objects, which aren't thread-safe.

Or, alternatively just use another alternative runtime that doesn't require Sync.

Idk if there are any.
2021-12-18 11:46:12 +07:00
Nefo Fortressia 4edeeaf080
feat: add a GtkStackPage in EchidnaSidebar 2021-12-18 11:40:21 +07:00
Nefo Fortressia b65788f300
feat: implement EchidnaSidebar.to_imp() 2021-12-18 11:32:00 +07:00
Nefo Fortressia 40dad9e212
Merge branch 'main' into feat/workspaces 2021-12-18 11:01:11 +07:00
Nefo Fortressia e3e3b6f1b8
Merge branch 'main' into feat/workspaces 2021-11-16 14:58:46 +07:00
Nefo Fortressia 9fa1915be2
Merge branch 'refactor/exports' into feat/workspaces 2021-11-16 14:46:23 +07:00
Nefo Fortressia 8afa897776
fix: fix not defined errors in recursive_add_files_into_tree_store()
recursive_add_files_into_tree_store() tried to refer to 'filepath', which
is not defined. Use the parent_file's path to replace 'filepath'.

The function also tried to refer to 'files', which is also not defined.
Seems to be a typo of 'child_files'.
2021-11-11 07:32:14 +07:00
Nefo Fortressia cc6d331670
fix: fix some format! macro issues in workspace.rs 2021-11-11 07:30:25 +07:00
Nefo Fortressia 966a909ab8
refactor: make workspace.rs implements on EchidnaWindow
The code was moved from the EchidnaEditor struct, but we haven't updated
it to implement EchidnaWindow instead of EchidnaEditor.
2021-11-11 06:20:11 +07:00
Nefo Fortressia e6d69db499
chore: pin pre-commit repos to their latest version 2021-11-11 06:15:48 +07:00
Nefo Fortressia bf5005f400
Merge branch 'feat/activitybar' into feat/workspaces 2021-11-10 20:18:12 +07:00