@Telis-Tnilit
So…not sure if the TagsView plug-in met your need, but I modified something I already had scripted (in Pythonscript) to do what you want , albeit in a basic way: The script needs to see the enclosing C function braces ( { and } ) in column 1, and when it does it takes the single line above the { as the function signature.
So for a C function like this:
void test2(void)
{
x = 1;
if (1)
{
x = 2;
}
}
when the caret is inside the function body, the status bar will show this:
Imgur
I call the script CFunctionShowInStatusBar.py :
def CFSISB__callback_sci_UPDATEUI(args):
def sb_print(x):
if len(x) == 0: x = ' ' # writing '' to status bar does nothing, so change it!
notepad.setStatusBar(STATUSBARSECTION.DOCTYPE, x)
if notepad.getCurrentFilename().lower().endswith('.c'):
f = editor.findText(FINDOPTION.REGEXP, editor.getCurrentPos(), 0, '^[{}]')
if f != None:
(found_start_pos, found_end_pos) = f
if '{' == editor.getTextRange(found_start_pos, found_end_pos):
line_nbr = editor.lineFromPosition(found_start_pos)
if line_nbr == 0:
sb_print('not in function?')
else:
sb_print('in function: ' + editor.getLine(line_nbr - 1).rstrip())
else:
sb_print('not in function')
else:
sb_print('not in function!')
else:
sb_print('')
editor.callback(CFSISB__callback_sci_UPDATEUI, [SCINTILLANOTIFICATION.UPDATEUI])```