Sublime Forum

Gutter marker in minimap

#1

Is there a way to make the gutter markers show on the minimap?

0 Likes

#2

If you are trying to make the actual icon show in the minimap, I don’t believe there is a way to do it.

However, if you are creating the icons yourself in a plugin and want to show the region in the minimap but not in the view, you could use sublime.DRAW_NO_FILL and sublime.DRAW_NO_OUTLINE which will hide it in the view. Here is the example I put together to test this. Just run view.run_command(“region_test”) from the sublime console.

class RegionTestCommand(sublime_plugin.TextCommand):
	def run(self, edit):
		lines = ]

		for sel in self.view.sel():
			line = self.view.line(sel)
			lines.append(line)
		
		self.view.add_regions("nick_test", lines, "string", "circle", sublime.DRAW_NO_FILL + sublime.DRAW_NO_OUTLINE)

-Nick

0 Likes

#3

Thanks huot25!

This is hacky but I can see this working if I were to select the first character of each line.

0 Likes