Skip to content

Conversation

@supersaiyansubtlety
Copy link
Member

@supersaiyansubtlety supersaiyansubtlety commented Oct 26, 2025

Adds #139

based on #318


Adds markers for each token type:

  • markers for each type are toggleable; only obfuscated and fallback are enabled by default
  • markers can be limited to declarations; disabled by default
  • markers have entry tooltips; enabled by default
  • markers can be clicked to navigate to their corresponding entry
  • 0 - 3 (default 2) markers can be displayed per line; which markers are displayed is determined by priority:
    debug > obfuscated > fallback > proposed > deobfuscated
  • higher priority markers are left-most
  • markers have their token type's outline color (because it's brighter and more opaque than the main color)

Config

max markers per line mark entries
markers-max-menu markers-mark-menu
from editor.toml:
# Settings for markers on the right side of the editor indicating where different entry types are.
[entry_markers]
	# Whether markers should have tooltips showing their corresponding entries.
	# default: true
	tooltip = true
	# The maximum number of markers to show for a single line. Set to 0 to disable markers.
	# range: 0 - 3
	# default: 2
	max_markers_per_line = 2
	# Whether only declaration entries should be marked.
	# default: true
	only_mark_declarations = true
	# Whether obfuscated entries should be marked.
	# default: true
	mark_obfuscated = true
	# Whether fallback entries should be marked.
	# default: true
	mark_fallback = true
	# Whether proposed entries should be marked.
	# default: false
	mark_proposed = false
	# Whether deobfuscated entries should be marked.
	# default: false
	mark_deobfuscated = false

Screenshots

default all enabled only declarations
enigma-markers-default enigma-markers-all-enabled enigma-markers-only-declarations
large file
markers-squished-fixed-bounds

Tooltips

markers-new-tooltips.mp4

TODO:

  • add markers for each highlightable token type
  • make markers for each token type toggleable
  • make markers interactable (tooltip on hover, click to navigate to token)
  • rebase once Improve selection highlighting #318 is merged
  • add scroll preview on mouse over scroll bar (may go in followup PR)

@supersaiyansubtlety supersaiyansubtlety self-assigned this Oct 26, 2025
@supersaiyansubtlety supersaiyansubtlety added enhancement New feature or request user interface affects the enigma ui labels Oct 26, 2025
@supersaiyansubtlety supersaiyansubtlety linked an issue Oct 26, 2025 that may be closed by this pull request
@supersaiyansubtlety supersaiyansubtlety force-pushed the unmapped-lines branch 3 times, most recently from ba756e7 to 5fed750 Compare October 27, 2025 01:36
@supersaiyansubtlety supersaiyansubtlety changed the title Unmapped lines Token type markers Oct 28, 2025
@supersaiyansubtlety supersaiyansubtlety force-pushed the unmapped-lines branch 9 times, most recently from 39f2af8 to bcf9591 Compare November 4, 2025 23:39
@supersaiyansubtlety supersaiyansubtlety force-pushed the unmapped-lines branch 4 times, most recently from 2f32e3a to b47bdfc Compare November 9, 2025 20:46
add EntryMarkersSection.onlyMarkDeclarations
repaint MarkableScrollPane on marker added
ensure entry tooltip doesn't show when marker tooltip is showing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request user interface affects the enigma ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show Unmapped lines in scrollbar

1 participant