outshine icon indicating copy to clipboard operation
outshine copied to clipboard

tab no longer cycles over scopes in python mode

Open notestaff opened this issue 10 years ago • 2 comments

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.

notestaff avatar Mar 12 '14 16:03 notestaff

I am also experiencing the same problem. Any solutions? Thanks

jackjackk avatar Sep 16 '14 14:09 jackjackk

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.

tj64 avatar Sep 17 '14 20:09 tj64