Command palette requires attention #5792
Unanswered
goyalyashpal
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
[[TOC]]
Problem
Summary
The idea of command palette
<Space> ?
in a TUI editor too is awesome.However, current implementation of it in helix looks very bad in frontend.
Details
buffer
(it means, search for the given term, and see the results)
<c-j>
Solution
Explanation of current scenario
Current format (shown in bnf) is:
Here:
description
: longest: order of sentencekeybind
: shortest: order of single wordcommands
: medium: order of multiple wordslongest shortest medium
So, obviously things get mixed up, unaligned and hard to scan.
Different modules for solution
So, i think one solution for sure can be:
and as keybinds don't vary so hugely in length, will bring more relative alignment as well
Some further directions:
A. Using (hardcoded) ascending arrangement for all 3 i.e. "shortest medium longest" so:
"keybind cli-command config-command description"
B. Using 2 line layout
C. Using visually columnar format i.e. using spaces and maybe even pipes
|
too for indentation and alignmentCombining above modules to get a suitable solution
Solution using combination of above directions:
man
orhelp
format in CLIsScreenshots of Current Scenario:
I have min-fied these to not pollute, click-open or pinch-zoom in these to get clear view
Beta Was this translation helpful? Give feedback.
All reactions