Closed juarezr closed 1 year ago
Do you have any examples of how this might look in the UI?
The right sidebar can be extended/collapsed by dragging it at the left edge. Does this satisfy your requirements?
Maybe this example created by using vscode UI would help.
Notice the quick switch when using the <
button in the pictures below.
I hope this could help.
Not really, I would need it to work with the UI on regex101 :)
I've been trying to find a good way to fit this into the UI, but I have not been able to find one. If you can mock something up, please add it here. Until then, I'm closing this.
Add a pin button for toggling collapse/expand on the Expression Editor and the Sidebars
First of all, thanks for the excellent tool that Regex101 is and for all effort you put into it. It really makes our lives and work easier.
Use Case / Pain Point
While editing/debugging regexes is important to maximize the view on what you are currently focused for reading and making comparisons between the regex, the text, the matches, and the reference as needed.
There are some cases when either the pattern or the text is too long to fit in one line. When this happens the word/line wrapping makes it difficult/cumbersome to read the text on the panels and editors. These difficulties become even worse when working in stations with small and narrow screen sizes.
Solution
It would be good if there was an easy, fast, and accessible way to collapse/expand the three columns/views that compose the Regex Editor interface:
This would help maximize the focus mainly either on the editor (Regex/Text/Substitution) or on the Right sidebar (Explanation/Match Information/Reference).
Current State
Currently, there are the following options in the settings:
These options work fine, but it would be great if the collapse/expand functionality are directly accessible in the editor interface.
When considering only the left sidebar, I think that having the option in settings is good enough as it has a "hamburger" button/menu for toggling.
But for the Editor and for the Right Sidebar, it would be faster and easier to have the option accessible right in the interface for switching/collapsing/expanding between the Editor and Right Sidebar.
Notice also that:
V
) so:Sugestion / Feature Request
Some suggestions for improving the user interface in an empiric order of impact/cost:
Hope that the suggestion can help improve this wonderful tool.