octotui icon indicating copy to clipboard operation
octotui copied to clipboard

[FEATURE] Default user config option

Open spenserblack opened this issue 3 years ago • 3 comments

I think it would be useful to optionally allow a default user to be set, which can be displayed by simply running octotui with no subcommand. I'm thinking of tools like neofetch and onefetch, which users run to gather information about themselves. The simplest usage for these tools is to run with no additional commands/arguments.

I think this could be stored in a config file like ~/.config/octotui/default-user. If the file is empty, and no arguments are passed, then the user is instructed to either put something in the file, or use octotui search. If the file is not empty, then octotui will automatically use the username in that file unless search is used.

spenserblack avatar Apr 13 '21 12:04 spenserblack

Cool feature, i'll consider this

irevenko avatar Apr 13 '21 13:04 irevenko

Thanks! I can make a PR if you want the feature added.

spenserblack avatar Apr 13 '21 14:04 spenserblack

you can

irevenko avatar Apr 19 '21 14:04 irevenko