While editing a long C++ file, I use
rtags to jump around. It would be very handy for me to know where I am in terms of where the cursor is relative to the classes-functions. For example, it would be great if I could have something similar to
imenu that would echo
Class A -> function F for the current position of the cursor.
I believe that some version of this does exist even in vanilla Emacs, it's only that I cannot find it.