hackjutsu / Lepton

💻 Democratizing Snippet Management (macOS/Win/Linux)
https://hackjutsu.com/Lepton
MIT License
10.13k stars 475 forks source link

Support for multiple accounts? #456

Open mortonfox opened 4 years ago

mortonfox commented 4 years ago

The more we know about your system and use case, the more easily and likely we can help.

Environment info

Description of the problem / feature request / question:

I have two Github accounts, a personal account and a work account. Both accounts have gists that I would like to view/edit with Lepton.

Is there a way for Lepton to support multiple accounts at the same time, i.e. without logging out and logging in again every time I want to work on a gist in the other account?

I would be okay with running multiple instances of Lepton using open -n as a workaround. However, if I ran it that way, the data directory will have to be different from the default for one of them.

If possible, provide a sample gist or screenshot:

If possible, provide the log files

For Lepton after v1.9.0, the path of the log file can be found at Command/Ctrl + ,

liuxd commented 3 years ago

me too. I also hope the awesome app supports multiple accounts.

hackjutsu commented 3 years ago

I use a small script to switch between my personal and the enterprise accounts which essentially toggles the .leptonrc field enterprise.enable. https://github.com/hackjutsu/Lepton/wiki/Configuration

But I agree it's preferable to have the native multi-account support in Lepton.