How do I view my tag navigation history?
Answer
:tags
Explanation
The :tags command displays the tag stack, showing all the tag jumps you have made with <C-]> and their return points.
How it works
:tagsshows a numbered list of tag stack entries- Each entry shows the tag name, from-file, and to-file
- The
>marker shows your current position in the stack
Example
# TO tag FROM line in file
1 1 main 10 src/app.go
2 1 process 42 src/main.go
> 3 1 validate 15 src/process.go
Tips
<C-t>pops the tag stack (goes back one level){count}<C-t>pops multiple levels:tagpushes to the stack and jumps to the matching tag- The tag stack is separate from the jump list