sagemath / sage-shell-mode

Emacs front end for SageMath
GNU General Public License v3.0
100 stars 16 forks source link

Support for jump to definition? #81

Open havarddj opened 1 month ago

havarddj commented 1 month ago

Hi! Sorry for the potentially naive question, but does sage-shell-mode have built-in functionality for jumping to definition in a sage file? Suppose my cursor is over a function call my-func(...) which is defined somewhere else in the file, is there a command which jumps to the line def my-func(...) ...? The standard key command M-. just asks for a tag table, which I suppose one can generate using ctags. However, assuming sage knows where functions are defined, perhaps it would be nice if sage-shell-mode provided a command for this?