-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add a save file #1
Conversation
Thank you very much for your contribution! I am very happy that you feel this is the right project for your first PR :) I have 2 really minor suggestions:
What are your thoughts on this? |
Those are great ideas! I will also check out maybe making that file a consolidated list so people don't have to scroll through each session |
Nice! If you go in that direction, I would recommend to split data and representation. For example, I would store the raw data (command distribution) in a JSON file that can be "resumed" and do the output formatting on demand with scusage. |
add 2 parameters: - --file/-f to store the output in a JSON file (directories are automatically created) - --resume to resume statistics from a JSON file previously written with -f see #1
FYI: I did a "proof of concept" implementation on a separate branch ( Unfortunately, I have not been able to test it at all, since I just re-installed my system to play around with wayland and sway :P |
Do you have discord by any chance? Mine is volker1#0001. I have some other ideas I would like to talk to you about. |
Hi, I am really sorry, but I don't have any "real time" channel, mostly because my github projects are purely in my spare time, and that is quite the scarce resource :( Also, I think for a community project, it makes sense to publicly track ideas in an issue tracker. Hope that is still fine for you, I am very interested in your ideas! |
@REALERvolker1 do the changes work for you? if so, i will go ahead and merge them to main. thanks! |
Hello, sorry for the extremely late reply, I had some irl stuff to do. As for testing this, I have yet to do that. It is a lot more polished than my implementation. |
no worries, there's no hurry to this. thank you and all the best! |
fixed in #2 |
This pull request adds an "auto-save" feature for each run. The intent is for this to autostart and run in the background while a user uses their computer, providing an easier way to view this information.
The file is saved in
$XDG_CONFIG_HOME/scusage.txt
Also this is my first pull request ever :D Please consider.