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

show gutter icons better, when 2+ icons exist for the same line #5880

Closed
Alexey-T opened this issue Feb 27, 2025 · 7 comments
Closed

show gutter icons better, when 2+ icons exist for the same line #5880

Alexey-T opened this issue Feb 27, 2025 · 7 comments

Comments

@Alexey-T
Copy link
Owner

Alexey-T commented Feb 27, 2025

sometimes, 2+ icons exist for the same line:

  • LSP plugin shows lint-icon
  • CudaLint plugin shows error/warn icon
  • pair brackets finder shows bracket icon

Todo:

if option "gutter_width_bookmarks" has value >= 2 * <icon_width>, editor could paint 2 icons one to the left, and other to the right. when value >= 3 * <icon_width>, editor could arrange 3 icons: one to the left, 2nd centered, 3rd to the right.

@Alexey-T Alexey-T changed the title Better show gutter icons when 2+ icons exists for the same line Better show gutter icons when 2+ icons exist for the same line Feb 27, 2025
@Alexey-T Alexey-T changed the title Better show gutter icons when 2+ icons exist for the same line show gutter icons better, when 2+ icons exist for the same line Mar 21, 2025
@Alexey-T
Copy link
Owner Author

Alexey-T commented Mar 22, 2025

@ildarkhasanshin вроде это твоя идея? можешь помоч, сделать тестовый плаг для проверки иконок? пусть он выводит на разных строках

  • 1 иконка от bookmark (как CudaLint)
  • 1 иконка от gutter decor (как LSP Client)
  • 2 иконки на 1 строке - от bookmark + decor

или я сам потом сделаю, но не знаю когда.

@ildarkhasanshin
Copy link
Contributor

@Alexey-T
Copy link
Owner Author

bookmark тут с дефолтной иконкой, а надо бы еще и дополнительно тестить отрисовку кастомных иконок.

@ildarkhasanshin
Copy link
Contributor

update

Alexey-T added a commit to Alexey-T/ATSynEdit that referenced this issue Mar 31, 2025
@Alexey-T
Copy link
Owner Author

Alexey-T commented Mar 31, 2025

теперь так:
вторая иконка (от bookmark) сдвигается вправо на пол-иконки.

Image

еще правее уже плохо. наедет на циферки.

@ildarkhasanshin
Copy link
Contributor

а опционально масштабировать возможно?

@Alexey-T
Copy link
Owner Author

пока нет. и там еще код думает что показ тултипа для иконки он идет по старым координатам, т ч сдвигать сильно - хуже для тултипа. это я пока менять не хочу

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants