Re: Is tab key completion possible with SciTE currently?
nkmathew <[email protected]>
| Newsgroups | gmane.editors.scite.general |
|---|---|
| Message-ID | <[email protected]> |
Simple version for anyone interested:
function MyTab()
char = editor.CharAt[editor.CurrentPos - 1]
column = editor.Column[editor.CurrentPos]
_space = 32
_tab = 9
_newline = 10
seltext = editor:GetSelText() or ''
canTab = char == _space or char == _tab or char == _newline or column == 0
if canTab or #seltext > 2 then
editor:Tab()
else
scite.MenuCommand(IDM_COMPLETEWORD)
end
end
On Tuesday, 4 January 2022 at 06:28:47 UTC+3 Neil Hodgson wrote:
>
> command.name.37.*=MyTab
> command.37.*=MyTab
> command.mode.37.*=subsystem:lua,savebefore:no,quiet:yes
> command.shortcut.37.*=Tab
>
> Neil
>
>
--
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/scite-interest/0d7bc86c-a905-4d3f-9a08-0df6b3d75661n%40googlegroups.com.