-
Notifications
You must be signed in to change notification settings - Fork 313
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
improve bookmarking #1126
improve bookmarking #1126
Conversation
LGTM. Might be cool if scrolling line jumps always centered, like swatch cycling. It'd be kind of a shame if this goes unnoticed, but I'm not sure there's a great visual indicator which won't be distracting though. Mostly unrelated, I'd like to get rid of all the orange eventually. I get why we're using it in search and bookmarks, because it's a solid highlight color that works well, but damn it's fugly. Cyan stands out pretty well against most backgrounds too, so some shade of it must work decently. |
Switched to cyan. I'm fine with orange but cyan matches our palette especially in the sectioned editor which has a focus outline of the same color. |
Done. |
Everything LGTM. You think we should at least give em hover backgrounds to indicate action? NBD either way. Up to you. |
The cursor is changing, I thought that's enough. |
Cursor changes after you click it. I'm just concerned that no one will realize they're nclickable in the first place, particularly since they never have been previously. |
Ah. Maybe you can find a satisfactory solution then. If not, I'll try something tomorrow. |
Turns out the feature works with all keymaps as long as we simply load sublime.js which we will always do. So now |
...because we intentionally don't focus any CM in this case as it's bugged as hell
* pull editing-only stuff from codemirror-default.js * switch throttledSetOption to IntersectionObserver
https://github.com/openstyles/stylus/wiki/Hotkey-shortcuts#editor-shortcuts |
We can find a way to indicate the feature later. |
@tophf Now, |
Yeah that's good for consistency. Done in c635f2e. |
This comment has been minimized.
This comment has been minimized.
Apparently it's because your section is taller than window. I'll look into that. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Should be fixed in a91183e. |
Fixes #952.
Line number area accepts mouse clicks now:
Changed the default style so it's more noticeable especially in the dark themes:
As for cycling through all sections, that's not reliably possible with the way sublime bookmarks work as their next/previous order isn't based on a line number but rather on the bookmarking order so it may jump all around the place within one section. This implementation seems weird but I'm not sure we can convince CodeMirror's author so maybe I could just re-implement bookmarking myself one day. That would make it available for all keymaps not just
sublime
.