Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actual recents #3

Merged
merged 9 commits into from
Jun 7, 2024
Merged

actual recents #3

merged 9 commits into from
Jun 7, 2024

Conversation

bzglve
Copy link
Contributor

@bzglve bzglve commented Jun 6, 2024

Michal, I've found vscode database with some info/configurations with history.recentlyOpenedPathsList json that handles projects in order as Ctrl+R shortcut do.

Hope it will be useful

I saw that you also added github actions config, so you can just ignore what I added

Also I edited a little Cargo.toml to build with a little more fresh versions of libraries

final refactoring was again made by gpt, but I tested and it seems to be good

bzglve and others added 9 commits June 6, 2024 01:41
- Add RUSTFLAGS to treat warnings as errors.
- Integrate Clippy linting step into the workflow.
- Updated dependencies in Cargo.toml:
  - Bumped `abi_stable` version to "0.11".
  - Removed minor versions from `ron`.
- Refactored State struct in lib.rs:
  - Added `Project` struct to encapsulate project details.
  - Replaced tuple with `Project` struct in `State` results.
- Improved config handling:
  - Changed field initializations to use constants for default values.
  - Removed unnecessary cloning and streamlined the initialization process.
- Enhanced readability and maintainability of code.
- Integrate `rusqlite` for database interaction to fetch recently opened paths.
- Refactor `init` function to read paths from SQLite database instead of file system.
- Update `Config` struct with default values using `Default` trait.
- Simplify folder extraction logic and handle errors more gracefully.
- Adjust `Project` struct and related code for better readability and maintainability.
- Update `Cargo.toml` to include `rusqlite` dependency.
@czM1K3 czM1K3 merged commit 06f99df into czM1K3:master Jun 7, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants