-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Minimap #5308
Comments
FWIW, I am strongly against this 👎 |
I'm also not a fan, it brings me zero value and it's distracting and takes space |
best way I have seen a minimap implemented is -> inside a scroll bar, I think VSCode does it this way and as such takes up no extra UI space. also a minimap should only show only selections, and lsp errors,warnings only in the minimap, changed lines of code (aka. git status) -> which makes minimap very functional and not just lipstick on a pig. |
@scott-ling the default vscode minimap? it works nothing like that for me 🤔 am I missing some config? would you mind showing how the minimap looks for you on vscode? 😅 |
heres a little pic, just opened up a .bashrc and searched for an = sign, and you can see in the scrollbar there are all lines showing.
…On Jul 14 2022, at 8:22 pm, Alex Viscreanu ***@***.***> wrote:
@scott-ling (https:/scott-ling) the default vscode minimap? it works nothing like that for me 🤔 am I missing some config?
the only editor I recall showing the errors and warnings on the scrollbar is the intellij platform one but that's not really the minimap being discussed here; and usually git status indicators are on the left gutter, not on the minimap either
would you mind showing how the minimap looks for you on vscode? 😅
I'm curious if I have been missing some nice fancy features all this time 😆
—
Reply to this email directly, view it on GitHub (https:/zed-industries/feedback/issues/263#issuecomment-1184812013), or unsubscribe (https:/notifications/unsubscribe-auth/ATXWUNSP5KMPNUACILT3CSLVUBSGTANCNFSM53CW47CQ).
You are receiving this because you were mentioned.
|
oh, hold up, that's something different... that's the scrollbar itself, which I have butchered with custom css 🤣 yeah, this is definitely more useful 👍🏻 |
yeah, minimaps sux, minimap like features in scroll bar, awesome use of space
…On Jul 14 2022, at 8:56 pm, Alex Viscreanu ***@***.***> wrote:
oh, hold up, that's something different... that's the scrollbar itself, which I have butchered with custom css 🤣
yep, this is what I know from intellij based editors, but I wasn't aware vscode also had it
I turned off scrollbars looong time ago 😅
yeah, this is definitely more useful 👍🏻
—
Reply to this email directly, view it on GitHub (https:/zed-industries/feedback/issues/263#issuecomment-1184841051), or unsubscribe (https:/notifications/unsubscribe-auth/ATXWUNQC3EHVLBCD3R4KLU3VUBWF5ANCNFSM53CW47CQ).
You are receiving this because you were mentioned.
|
I'm dyslexic (being a dyslexic dev is a weird thing, but that's another story), so I often recognize code by the shape of it - which is where the minimap becomes useful for me. I've never cared for the decorators in the scrollbar (JetBrains' IDEs) because I can't see the code's shape there, which is important to me. |
I think the minimap by itself is not very useful. However, it's actually really nice when it shows red/yellow lines for ESLint and/or TypeScript errors/warnings throughout the entire file, allowing you to quickly click on that area of the minimap and scrolling you down to where the issue is. |
I also recognize code by it's shape. It's super useful. But I prefer seeing an outline of the document (like a table of contents). It gives me shape but also meaning in less space. The breadcrumb feature already creates an outline, but only line by line, which is weird because if I am already at that line I already know where I am. A document outline (as a form of minimap) would be useful for large documents. Also, hints in the scrollbar are immediately useful. |
You're probably already aware of this, but in case you haven't seen this, we do have a |
@JosephTLyons Exactly. The functionality is already there. I just would like to have it permanently open on the side as a form of minimap. |
fwiw I love the minimap for giving the code a shape and body, helps me navigate it by feel, like a few people have mentioned already. like i know where things are from the topology of the thing, like it's a kaiju or a battleship. i've come to understand this is atypical but also because I'll occasionally annotate my code with huge ascii/ansi art, kind of like xcode's //MARK comments but I usually just use figlet |
I've found minimaps really useful for many of the reasons mentioned here. While I am missing them in Zed, solving for that might not require a minimap. First, I rebound the outline to {
"bindings": {
"cmd-o": "outline::Toggle"
}
} However, I still find myself missing how vscode indicates problems in the file tree and minimap. The problem multi-buffer is a really neat idea, but I don't find it useful for more complex problems. (The amount of padding and UI chrome can sometimes make things feel disconnected). I think I could live without a minimap if the file tree and outline had a color/underline/dot/something to indicate a problem/warning. I seem to be a very spatial programmer, in that I rarely search, and instead navigate to the file and part of the file when looking for something, or solving a bug. I think this is my brain indexing on where something is more than what it was named. Given Zed's opportunity to rethink much of the IDE, and as much as I do love minimaps, I'm keen to see what you folks come up with. |
I love this insight! |
I think it would be nice to have configurable minimap, either in the scrollbar or standalone, since there's no clear consensus here. |
I really got used to minimaps. I'm not dyslexic but I do use it to recognise the shape of the code on long files. The other use case that I found SUPER useful is the |
Hey there - very excited about Zed - I wanted to echo others' comments about coming to rely on minimaps to navigate larger projects. At this point the lack of the option is a blocker on using adopting any new editor as a main editor. I understand why people bring up |
Here's the alternative Display hunks/diagnostics/search results in scroll bar that I'm personally looking forward to and kind of mentioned here #5308 |
Git diff in scrollbar will be landing this next Wednesday, if all goes to plan. |
Any chance of ticks in the scrollbar for bookmarks/errors/warnings/todo/etc like JetBrains? Even better if they were clickable. What's the keybind for |
Just to add another example of usefulness, I haven't seen Sublime Text mentioned in this issue so far. When I find or highlight a symbol it highlights all instances of that symbol in the minimap which is very useful. Also, any lint / syntax errors and warnings are highlighted in the minimap: Screen.Recording.2024-02-15.at.9.28.32.AM.mov |
Minimap is so useful for so many reasons. Please add it as optional for those people who don't like it. But it is a really useful one as too many people asked above mentioned with usage. Someone said it is space-consuming! Do we write code across the entire area of our screen? If we split the screen and use multiple windows that could be a reason that it may take space otherwise it won't. In this case you can disable the feature |
this might be crazy but... how about dragging the vertical scrollbar to the left to reveal, expand, and transform the scrollbar into a minimap. then when dragging it back to the right it collapses into the scrollbar as it is now. after all, the minimap is just one big detailed scrollbar, isn't it? |
I can't remember the specific software that had a similar type of interaction, but I think this is a great idea! P.S. Was it YouTube's timeline scrubbing that allowed for a more precise time selection when dragging up, that I'm thinking about? |
Sorry to add to this, but a bit of context from other IDEs where this isn't the default: One of the top 50 (~#32) plugins for IntelliJ/Jetbrains IDEs is Code Glance Pro, which adds this - just for some context for some massive "grain of salt" numbers. |
The https://code.visualstudio.com/updates/v1_88 Zed's |
As a person with a disability who can only use a mouse (left and right click only), I rely heavily on the minimap in Visual Studio Code to scroll. It would be extremely helpful to have a similar feature in Zed as well. |
But it is optional. You do not have to use it if it is implemented! |
Again, it is personal. An editor should support it, because some people can jump to pieces of code just remembering the "shape", for instance. The users that do not want to use it need not activate it, and it would not be forced upon them. |
Besides xcode, the code reading tool SourceInsight 4 also implemented a minimap with helpful navigation functionalities. |
@matthieuHenocque I love this! I used to create these large labels manually using ASCII generators. This is way more convenient. |
is there a way to enable minimap in zed |
+1 on this request. It really helps to scan & pinpoint getting to the correct code section especially in longer files. |
This comment was marked as spam.
This comment was marked as spam.
I would really love this as well, it helps get birdeye view of the code and locate blocks easily. +1 |
A minimap is also useful when you have a multi-monitor setup and need to do a big jump-scroll. Currently with zed it's a fight to even hit the tiny scroll-bar handle when your document is a few thousand lines of code. 4px high and 10px wide on a 1440p monitor and if you miss it you either mark random stuff in your document, click into another application on your other monitor, jump to a random location in code or if you're truly unlucky hit the window resizer. |
I'm all for the minimap addition, this is an essential tool and helps a lot with code navigation and understanding. Please consider implementing it. |
Is there a way to write it as an extension? I would learn Rust to be able to write a minimap for Zed, but I don't think the way I would implement it would work for other people, so I'd rather write it as an extension, so if people don't like it they can pick another implementation of it. |
This comment was marked as spam.
This comment was marked as spam.
For many reasons stated above (for me navigating large quantities of code, seeing where marked words and symbols show up, where text got replaced, where linters show issues etc) I am really missing this feature. It has been a great help to me in past. A GPU-accelerated map would open the door to a ton of cool use cases. If not implemented, I'd say it's a missed opportunity folks. |
I also use the |
Came back here to share a bit of personal experience where the Minimap has been incredibly useful with the hope it will convince the Zed team to implement it. We recently adopted Airbnb coding style at my company so I had to refactor huge JavaScript controllers from a legacy codebase. I used the Minimap's holistic point of view to evaluate the time needed to solve all of the linter's errors and warnings. Regarding linters errors, it would be nice if there was a visual indicator of errors for things that are missing (like a semicolon) in the buffer. Just sayin'. |
The argument is simple: Minimap is such a common feature nowadays — there are even some editors running in a terminal with a minimap — that it is simply needed to guarantee an editor’s wide adoption. And one of zed’s goals is to be widely adopted. This, and the ability to expose commands and command sequences in sidebar lists (like VScode), and two way sync with SyncTeX. The latter could be achieved with proper scripting. Or a wider API, which then could be used by the extensions. |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
There's 43 participants that get useless flood of e-mail and other notifications due to the new postings, hence I've locked the issue and urge people interested in the feature to submit PRs on the topic instead of all this above. Unfortunately, GH will prevent adding 👍 emojis for this too, but it's quite clear that the feature is wanted and in demand, it's just someone has to get the time to implement it. I am not sure exactly how to implement this, but feel that all the bits are ready.
|
No description provided.
The text was updated successfully, but these errors were encountered: