-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Comments
I love this, similar to Doom Emacs. |
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. |
@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 |
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
It shows down below while still showing the preview above without blocking it.
Let me know your thoughts.
The text was updated successfully, but these errors were encountered: