stu icon indicating copy to clipboard operation
stu copied to clipboard

General enhancement proposals

Open augustwester opened this issue 1 year ago • 5 comments

Sorry if this is too general for one issue. Let me know if I should split it into separate issues for each request.

Feature requests:

  • Option to yank the path to the currently highlighted object / directory to the clipboard
  • Option to open the currently highlighted object / directory in the S3 console in the browser

Navigation enhancement proposals:

  • Add support for using arrow-keys. (I personally like the vim-like keybindings of j/k and g/G but I know a lot of people would prefer using the arrow keys.)
  • Use Esc to navigate back instead of backspace. I think k9s has nailed keyboard navigation, and would love for stu to behave in a similar way. I would personally prefer to exit stu with <C-c>.
  • I love the new refresh option, but why is it mapped to R and not r? Maybe there is a good reason for this, but since r isn't already mapped to an action, I'm curious why R was chosen.

Thanks again for making this great tool!

augustwester avatar Sep 11 '24 12:09 augustwester

Option to yank the path to the currently highlighted object / directory to the clipboard

This seems useful.

Option to open the currently highlighted object / directory in the S3 console in the browser

This may currently be what you can do with the x key (Although, it's a little different in that it opens the currently open hierarchy in a browser).

Navigation enhancement proposals

I mostly agree with you on these. To be honest, I added keys without much thought when I first implemented it 👻 (As for the R key, this was because we use r in object details and we wanted to prevent pressing it by mistake.)

However, there is probably no one right answer for key bindings that will please everyone. Probably the only way to achieve is to allow users to customize their own keybindings. This is something I've been wanting to implement for a long time, but it's not easy so I haven't gotten around to it yet.

lusingander avatar Sep 11 '24 12:09 lusingander

This may currently be what you can do with the x key (Although, it's a little different in that it opens the currently open hierarchy in a browser).

I totally missed this. This is great!

Thanks for considering the other proposals 😊

augustwester avatar Sep 11 '24 13:09 augustwester

Option to yank the path to the currently highlighted object / directory to the clipboard

In #30, I implemented the feature to copy the information of the resource highlighted on the bucket or object list.

It may not be exactly how you imagine it, this is to ensure consistency with object detail page, and I think the functionality is sufficient for now.

lusingander avatar Sep 20 '24 05:09 lusingander

Amazing, really appreciate your responsiveness to the suggestions! 🙌

augustwester avatar Sep 20 '24 15:09 augustwester

https://github.com/lusingander/stu/releases/tag/v0.6.3

lusingander avatar Sep 21 '24 01:09 lusingander

https://github.com/lusingander/stu/releases/tag/v0.7.0

lusingander avatar Mar 11 '25 23:03 lusingander