Sublime Forum

How to restrict go to symbol only show symbol from one source?

#1

In sublime text 4, now go to symbol will show mixed symbols. For example. if I have a markdown file, and inside the file there is some go snippet code, go to symbol will show both markdown source’s symbol and go source’s symbol mixed, and the mixed mess make go to symbol help less to show the markdown’s structure.

So is there a way to restrict the go to symbol only show symbol from the main source? like inside a *.md file, only show markdown’s symbol? Like the old days?

0 Likes

#2

What do you mean when you say go to symbol? The Goto > Goto Symbol menu item still only displays symbols in the current file for me, for example.

Does the same thing also happen in Safe Mode?

0 Likes

#3
0 Likes

#4

When I say go to symbol I mean when I bring up the go to symbol panel. Yeah it’s still displays symbols in the current file, what I want to achieve is: when inside a markdown file, only display markdown’s symbol (aka headers), but omit the embedded code snippet’s symbol.

@kingkeith gave me the solution to do this.

0 Likes

#5

Thanks! Seems this patch is not released yet. I just manually created this file.

0 Likes