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

Improve lsgists command #25

Open
OsirisTerje opened this issue Oct 12, 2022 · 2 comments
Open

Improve lsgists command #25

OsirisTerje opened this issue Oct 12, 2022 · 2 comments

Comments

@OsirisTerje
Copy link

OsirisTerje commented Oct 12, 2022

Awesome tool!

The lsgists command lists all gists including those in subfolders. Like unix ls, it would be better if it only listed the top level gists, That is also the way the gists.github.com site works.
Look at my gists at https://gists.github.com/osiristerje . You can see I have a history folder (that comes from Visual Studio Code sync settings, so it is automatically updated). Using lsgists the content of this folder is listed along with the few top level (16) gists I do have.

image

One could additionally add an option to list content in subfolders, using the same syntax as the UNIX ls.

@cuducos
Copy link
Owner

cuducos commented Oct 12, 2022

IMHO opinion, the use case at hand is not a trivial one. GitHub Gist does not allow directories and subdirectories in its web UI:

image

I know Gists are just Git repos and we can pull and push whatever we want. Thus my point is that I would go the other way around. Instead of:

One could additionally add an option to list content in subfolders, using the same syntax as the UNIX ls.

I'd suggest:

One could additionally add an option to ignore content in subfolders, using the same UX as in the Gist UI.

What do you think about it?

@OsirisTerje
Copy link
Author

OsirisTerje commented Oct 14, 2022

That sounds very good to me.

Also given that you can't manually create subfolders, as you state.
One could also turn that option around, default it to ignore subfolders, and have an option to include them.

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

No branches or pull requests

2 participants