gh-repo-explore icon indicating copy to clipboard operation
gh-repo-explore copied to clipboard

Feature suggestions

Open kidonng opened this issue 2 years ago • 2 comments

Hi there! This is definitely one of the most useful gh extensions right now, and it compliments gh very well. I don't think we need to implement the whole GitHub into it (not to mention it's impossible), but some improvements over the current state would be awesome:

  • [x] Press Esc (and maybe also q) to quit

    Currently it seems only Ctrl+C exits which is not intuitive.

  • [ ] Line numbers

  • [ ] Breadcrumb (e.g. path/to/file)

kidonng avatar Aug 25 '21 15:08 kidonng

@kidonng Thanks for writing in. These are good ideas. Some of my thoughts on them:

  • Definitely agree that exiting on Esc makes sense. I would hold off on q though since the behavior would be inconsistent with which pane is in focus. Pressing q while searching for a file name should definitely not exit.

  • Line numbers would be great to have but a challenge to add. I investigated this a bit and would likely require major changes to the textview widget in rivo/tview.

  • Can you expand on the breadcrumbs idea a bit more? Would it just be a way to view the full file path at the top of the code viewing pane?

samcoe avatar Aug 30 '21 01:08 samcoe

What about e for open in $EDITOR

mTvare6 avatar Sep 14 '21 16:09 mTvare6