הϵѻteric² Features

Peek At Prototype

הϵѻMCEdit has a support for showing the signature of a function under the pointer, in a small window appearing at bottom of display.

Using The Feature

If the cursor will be placed at a function name and Ctrl-s will be pressed, then a small window containing its signature will pop-up at bottom of the display. Here’s an asciicast which presents this feature:

More, if Alt-? will be following pressed, then a jump to implementation of last requested function’s prototype will be done.

Thus, it will be, eg., in case of C language, to a .c, not a .h file (if possible), or similar for a given, supported language.

Remember that tags aren’t unique and can repeat but with different pointers – for example one to a .c, the other to a .h file. NeoMCEdit in general prefers C-file in such situation.

Accessing Libraries’ Implementations

You could have utilized this by downloading a library’s source code into root of your project tree (untracked) – to have access not only to its function’s prototypes (accessible via the symlink to the includes as outlined in Completion From CTags), but also to implementations (it might be useful, for example, to occasionally be able to exactly see what a library function does).

Eg.: to index GLib’s source you could’ve simply cloned it to an untracked subdirectory in your project’s tree (before running the ctags -e … command) by: git clone https://gitlab.gnome.org/GNOME/glib.git ~/project/glib-src, so that CTags can access and index it normally when processing also the project’s own symbols.

CTags can be run via eg.: the Makefile target as given in the article on CTags completion, from PeriodicCommand tool.

The above asciicast utilizes this which is being presented by the jump to the g_strsplit() implementation inside GLib sources.

NEWS · DOCS
הϵѻteric² features news mcedit

Dialogue & Discussion