Dyalog / ride

Cross-platform IDE for Dyalog APL
https://dyalog.github.io/ride
MIT License
206 stars 32 forks source link

Pressing <tab> at the end of the line has no effect. #431

Open aplteam opened 6 years ago

aplteam commented 6 years ago

It should jump to the next tab stop like the ODE.

jayfoad commented 6 years ago

Sounds like #194, which was fixed.

e9gille commented 6 years ago

I believe the regression is caused by the introduction of shell style autocomplete. Tab key was extended to trigger suggestions when pressed (single time in classic mode and twice in shell style) and text is present to the left.

I think what should happen is that a soft tab is inserted when there are no completion items. In that case, a single tab would be sufficient in classic mode and two tabs in shell mode, both inserting a single soft tab.

e9gille commented 6 years ago

Correction, a single tab should be sufficient in both cases as we would know if there are completion items and could insert soft tabs immediately.

JohnScholes commented 6 years ago

... a single tab should be sufficient in both cases as we would know if there are completion items and could insert soft tabs immediately.

I use shell-style autocomplete. The only downside of this would be having to back up over the blanks inserted by the soft tab if an expected word doesn't exist. At present, hitting tab twice confirms this without moving the input cursor.