outshine
outshine copied to clipboard
tab no longer cycles over scopes in python mode
With outshine, TAB puts the cursor on the innermost (most indented) python scope; in the original Python mode, TAB cycles the cursor between possible scopes . So, originally,
for i in ... for j in ... for k in ...
# pressing TAB here cycles between closing the three loops
whereas now, pressing TAB always puts the cursor to close the innermost 'k' loop.
I am also experiencing the same problem. Any solutions? Thanks
Outshine uses a macro for conditionally assigning a function to TAB, and if its on a headline, it uses the outshine cycle function, otherwise it falls back to the function normally assigned in the major-mode at hand.
I don't use Python, but to investigate the problem I would try to find out which function is really called by TAB when not on a headline, maybe by putting some logging statements in the function you expect to be called.
Since I don't know Python, its a bit difficult for me to investigate this. The key is probably to find out which function is really called by TAB at that position.