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

✨ Minimap #33

Open
austincondiff opened this issue Mar 31, 2022 · 8 comments
Open

✨ Minimap #33

austincondiff opened this issue Mar 31, 2022 · 8 comments
Assignees
Labels
editor enhancement New feature or request UI

Comments

@austincondiff
Copy link
Collaborator

austincondiff commented Mar 31, 2022

Overview

This view represents your code in a smaller form. The VSCode documentation says in best...

A Minimap (code outline) gives you a high-level overview of your source code, which is useful for quick navigation and code understanding. A file's minimap is shown on the right side of the editor. You can click or drag the shaded area to quickly jump to different sections of your file.

image

Tip: You can move the minimap to the left hand side or disable it completely by respectively setting "editor.minimap.side": "left" or "editor.minimap.enabled": false in your user or workspace settings.

Resources

@austincondiff austincondiff changed the title Minimap ✨ Minimap Mar 31, 2022
@austincondiff austincondiff added enhancement New feature or request UI editor and removed enhancement New feature or request labels Mar 31, 2022
@nanashili
Copy link

This is do able just not sure where to do it or where to add it in the codebase

@stale stale bot added the wontfix This will not be worked on label Jun 3, 2022
@CodeEditApp CodeEditApp deleted a comment from stale bot Jun 3, 2022
@stale stale bot removed the wontfix This will not be worked on label Jun 3, 2022
@austincondiff austincondiff transferred this issue from CodeEditApp/CodeEdit Jun 24, 2022
@Yellow-GGG
Copy link

Actually I'd prefer the minimap like Xcode rather than VScode. The minimap of Xcode contains more useful features and looks cleaner and much more beautiful. It will definitely take more work to make one like that, but I believe you'll love it too.

@tjkohli
Copy link

tjkohli commented Nov 23, 2022

@Yellow-GGG I agree the Xcode minimap is far more useful; however at the same time I think it may be wiser to ship a minimap with minimal functionality and then add complexity in future releases.

@austincondiff
Copy link
Collaborator Author

@tjkohli I completely agree. We need to get something in place first, then we can iterate and improve.

@Eliulm
Copy link
Contributor

Eliulm commented Apr 2, 2023

Hey @austincondiff, could you assign this to me? I already got some of the CodeEditorView code working:

Image

@Eliulm
Copy link
Contributor

Eliulm commented Apr 11, 2023

This is the current state of the minimap. Still a lot of bugs to fix, but I am getting there slowly...

Screen.Recording.2023-04-11.at.13.17.24.mov

@thecoolwinter I need to set the bounds of the visibleRange in STTextview+VisibleRange to the visibleBounds of the MinimapView conditionally. How should I rewrite the code, so that I can pass props to visibleTextRange variable?

@austincondiff
Copy link
Collaborator Author

Looks great! Where are we with this?

@Eliulm
Copy link
Contributor

Eliulm commented Apr 30, 2023

Unfortunately, I have had little time recently, since I am currently working on my degree.

I have decided that I am going re-implement the minimap in textkit2, instead of textkit1, since the resizing was very laggy. I have also encountered multiple issues like #184, which need to be resolved first, so that the minimap can work properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor enhancement New feature or request UI
Projects
Status: 🏃‍♂️ In Progress
Development

No branches or pull requests

5 participants