Commit Graph

110 Commits (feat/workspaces)

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 e3b330a57c fix: activity views not appearing
Merge branch 'feat/activitybar' into 'main'

See merge request EchidnaHQ/Echidna!11
2021-12-17 02:38:12 +00:00
Nefo Fortressia d98266255a refactor: use gtk::show_uri() instead of webbrowser crate
Merge branch 'refactor/gtk_show_uri_on_window' into 'main'

See merge request EchidnaHQ/Echidna!17
2021-12-17 02:32:51 +00:00
Nefo Fortressia c1193df8a2 refactor: make tab label their own widget
Merge branch 'refactor/closable-tabs' into 'main'

See merge request EchidnaHQ/Echidna!15
2021-12-17 02:29:51 +00:00
Nefo Fortressia 4583f993ab refactor: reexport functionalities to the crate for easier importing
Merge branch 'refactor/exports' into 'main'

See merge request EchidnaHQ/Echidna!13
2021-12-17 02:29:11 +00:00
Nefo Fortressia 3c9b665cbf fix: fix unexpected } in workspace.rs
Merge branch 'fix/unexpected-curly-bracket' into 'main'

See merge request EchidnaHQ/Echidna!18
2021-12-17 02:26:44 +00:00
Nefo Fortressia 38f072617f refactor: use GtkFileChooserNative for file dialogs
Merge branch 'refactor/file-chooser-native' into 'main'

Closes #22

See merge request EchidnaHQ/Echidna!19
2021-12-16 10:17:44 +00:00
Nefo Fortressia f29b48b9b4 refactor: migrate to Rust 2021
Merge branch 'refactor/rust2021' into 'main'

See merge request EchidnaHQ/Echidna!16
2021-12-15 22:09:51 +00:00
Nefo Fortressia cfe8c4dbe4
refactor: use GtkFileChooserNative for file dialogs
GtkFileChooserNative uses the platform's APIs, and thus the Portal API.

This is important since we want to integrate this well with Flatpak.

See:
https://docs.flatpak.org/en/latest/portals-gtk.html
2021-12-14 08:45:21 +07:00
Nefo Fortressia 7478d894ea
fix: fix unexpected } in workspace.rs
I think this is due to git add -p mistakes when I did 1b9f20b.

Not affecting anything, as workspace.rs is still WIP.
2021-12-14 08:29:48 +07:00
Nefo Fortressia 92f6770876
refactor: use gtk::show_uri() instead of webbrowser crate 2021-12-13 12:30:43 +07:00
Nefo Fortressia d29223e17f
chore: bump Rust edition to Rust 2021
Follow up of 183d548, which migrate old syntaxes to the new ones.

See:
https://doc.rust-lang.org/nightly/edition-guide/rust-2021/index.html
2021-12-13 11:25:33 +07:00
Nefo Fortressia b9a0719750
refactor: migrate panic!() usage to Rust 2021
This commit refactors code to conform to some changes in Rust 2021:
- The panic!() macro now uses format_args!() like println!().
- The usage of panic!(x) is now deprecated if x is not a string literal.

See:
https://doc.rust-lang.org/nightly/edition-guide/rust-2021/panic-macro-consistency.html
2021-12-13 11:25:10 +07:00
Nefo Fortressia e3e3b6f1b8
Merge branch 'main' into feat/workspaces 2021-11-16 14:58:46 +07:00
Nefo Fortressia 0de1d86494 refactor: update all Git links to the GitLab repo
Merge branch 'refactor/gitlab' into 'main'

Closes #9

See merge request EchidnaHQ/Echidna!10
2021-11-16 07:56:42 +00:00
Nefo Fortressia 9fa1915be2
Merge branch 'refactor/exports' into feat/workspaces 2021-11-16 14:46:23 +07:00
Nefo Fortressia 18ac470c47
refactor: make tab label their own widget
This helps with downcasting which greatly helps with type safety.
2021-11-15 07:14:59 +07:00
Nefo Fortressia 9a21bd54e5
Merge branch 'refactor/exports' into refactor/closable-tabs 2021-11-15 06:59:46 +07:00
Nefo Fortressia bd429a2b27
chore: pin pre-commit repos to their latest version 2021-11-13 13:44:41 +07:00
Nefo Fortressia 64b63cf416
refactor: reexport all preludes to the crate 2021-11-12 20:22:32 +07:00
Nefo Fortressia 8a9c414aee
refactor: reexport component preludes 2021-11-12 20:20:48 +07:00
Nefo Fortressia 0c43be616e
style: change the /lib prelude to import everything in closeable_tab 2021-11-12 19:49:55 +07:00
Nefo Fortressia fb0a4e731d
refactor: reexport components in components/mod.rs 2021-11-12 19:45:19 +07:00
Nefo Fortressia 044414fa06
style: reorder import order in window/mod.rs 2021-11-12 16:56:45 +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
Nefo Fortressia bc1aa68fbd
Merge branch 'main' into refactor/gitlab 2021-11-10 16:36:08 +07:00
Nefo Fortressia 89cc40cdcb
refactor: update all Git links to the GitLab repo 2021-11-10 16:32:40 +07:00
Nefo Fortressia ed2568dc25
chore: add "Logs" to the bug issue template 2021-11-09 08:01:10 +07:00
Nefo Fortressia 0e860f2621
Merge branch 'main' into chore/description-templates 2021-11-09 08:00:42 +07:00
Nefo Fortressia c2a49721e7
Merge branch 'main' into chore/description-templates 2021-11-09 07:56:58 +07:00
Nefo Fortressia 1a4c3bcce5
chore: add commitizen linting with pre-commit 2021-11-09 06:10:39 +07:00
Nefo Fortressia 52ef47f6fd
Merge branch 'main' into chore/commitizen 2021-11-09 05:41:54 +07:00
Nefo Fortressia 02e437b76c
style: format source files with cargo fmt 2021-11-09 05:18:23 +07:00
Nefo Fortressia 3f80738855
fix: activity views not appearing 2021-11-09 05:16:37 +07:00
Nefo Fortressia 3a4792cbfe
style: add license headers to source files 2021-11-08 17:43:08 +07:00
Nefo Fortressia 9569348767 Merge branch 'feat/closable-tabs' into 'main'
feat: make tabs closeable

Closes #17

See merge request EchidnaHQ/Echidna!9
2021-11-07 12:26:37 +00:00
Nefo Fortressia 569db942a0 chore: add Feature Request issue template 2021-11-07 18:53:19 +07:00
Nefo Fortressia b8503b563a chore: add Bug issue template 2021-11-07 18:51:42 +07:00
Nefo Fortressia 2b2e63d809 feat: ClosableTabImplNotebook::append_closable_tab() 2021-11-06 17:02:28 +07:00
Nefo Fortressia 2ec23a35d5 fix: prepend_closable_tab appending tabs
It should prepend the tabs instead of appending it. 🤦
2021-11-06 17:00:14 +07:00
Nefo Fortressia d54f470a76 refactor: remove placeholder Getting Started page
Will be replaced in a future MR.
2021-11-04 17:06:19 +07:00
Nefo Fortressia 8eb2e9c66a refactor: move back workspace.rs to src/components/window
I accidentally commited its move to src/lib. 🤦
2021-11-03 18:53:51 +07:00