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

Rework UI #8

Open
kapitanluffy opened this issue Oct 13, 2023 · 5 comments
Open

Rework UI #8

kapitanluffy opened this issue Oct 13, 2023 · 5 comments

Comments

@kapitanluffy
Copy link
Owner

So now that I am using it more. I feel that the quick panel is not the best option to show the compass. It blocks the view when navigating through files, especially files with a small number of lines.

I am rethinking the UI to be something like this

image

It shows down below while still showing the preview above without blocking it.

Let me know your thoughts.

@diocletiann
Copy link

I love this, similar to Doom Emacs.

@diocletiann
Copy link

diocletiann commented Jan 7, 2024

I did something similar with terminus, fzf, and ripgrep. I can live grep for words in the active folders. It's a little hacky right now but it seems it could be much nicer.

image

@kapitanluffy
Copy link
Owner Author

Cool! I actually have something similar to that already. If I can manage to convert the UI to this, we can totally create things like this fuzzy grep. The current implementation is using a quick panel which is bound to its limitations.

@kaste
Copy link

kaste commented Jan 10, 2024

@diocletiann What the heck... Can you share the code for what you've done here?

@diocletiann
Copy link

diocletiann commented Jan 10, 2024

@diocletiann What the heck... Can you share the code for what you've done here?

Haha sure. I (poorly) adapted one of the examples from https://github.com/junegunn/fzf/blob/master/ADVANCED.md#using-fzf-as-interactive-ripgrep-launcher. What you see is a custom Terminus command that runs the shell script below.

#!/bin/dash

RG_PREFIX="rg --column --no-heading --smart-case --color always --colors 'match:fg:red' --colors 'path:none'";
: | fzf \
	--ansi \
	--scroll-off=3 \
	--layout=reverse \
	--disabled \
	--bind "change:reload:sleep 0.2; $RG_PREFIX {q} || true" \
	--print0 \
	--delimiter : |
	cut -d ':' -f 1-3 |
	xargs -0 -I {} subl {} && exit

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

3 participants