Prayag2 / konsave

A command line program written in Python to let you backup your dotfiles and switch to other ones in an instant. Works out-of-the box on KDE Plasma!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] Ability to use both IDs and names to save/export profiles

Stwerp opened this issue · comments

** Description**
This may be intended behavior BUT it does not match use-case of the gif/video in the readme/github landing page.

konsave -l produces a list such as:

Konsave profiles:
ID            NAME
1              ProfileA
2              ProfileB

Attempting konsave -a 2 produces

Konsave: Profile not found :(
Please check the log at <$HOME>/.cache/konsave_log.txt for more details

It's unclear what the ID is used for. The landing page video shows the user typing konsave --apply 2 to apply a new profile.

I just installed konsave from pip today and its version 2.2.0

System information

  • running Rocky Linux 8 (red hat clone)
  • How did you install Konsave? using pip
  • What version of Konsave are you using? version 2.2.0
  • Did you try updating? no, but 2.2.0 looks like latest release per github sidebar

Again, this could be intended behavior, and then the issue is that the video is incorrect. Or I've messed something up on my end :) It's a new laptop I'm trying to get up and going.

This may be intended behavior

Yes, this indeed is the intended behavior. IDs were used in older versions and are now obsolete. I'll update the gif in the README and remove IDs from the output in the next release.

Would it not be better, as is the case with 'yay' and 'paru' wrappers, to be able to (without recalling all of our profiles) simply do 'konsave -a' or 'konsave -r' or even 'konsave -s' and be offered a list, with the option to enter the ID to apply?

Konsave -a
ID	NAME
1	Cream23.11.27
2	Dark23.11.27
==> ID to apply (eg: 1 2 3, 1-3 or ^4)
==> 

Then

konsave -s
Konsave profiles:
ID	NAME
1	Cream23.11.27
2	Dark23.11.27
==> ID to overwrite (eg: 1 2 3, 1-3 or ^4) or ENTER to type name
==> 

Would it not be better, as is the case with 'yay' and 'paru' wrappers, to be able to (without recalling all of our profiles) simply do 'konsave -a' or 'konsave -r' or even 'konsave -s' and be offered a list, with the option to enter the ID to apply?

Amazing idea! I'm definitely going to implement this for the next release!