Open LandisTwo opened 5 years ago
You need to trigger the completion menu by either tab
or ctrl+space
thanks for responding. \alpha[tab] nor \alpah[ctrl+space] before or after typing \alpha does anything. I've made sure that Edit > Unicode Completion Enabled is checked (enabled).
I was going to install LaTeX fonts, but I quickly remembered to do so also requires 1500 other packages... So, stopped that line of thought.
Anything else I could look at? is node.js or another dependence a possible issue? All other packages, and the Package Panel method of this package work. Landis.
there are no dependencies except for the Unicode font
I'm using 'Liberation Mono' but again it works via ctrl+shift+p (package panel). What should the Key-Binding code look like?
@randy3k , here is the [tab] section of the default keybindings (there's nothing in user):
{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} },
{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": false},
"context":
[
{ "key": "setting.tab_completion", "operator": "equal", "operand": true },
{ "key": "preceding_text", "operator": "not_regex_match", "operand": ".*\\b[0-9]+$", "match_all": true },
]
},
{ "keys": ["tab"], "command": "replace_completion_with_next_completion", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
},
{ "keys": ["tab"], "command": "reindent", "context":
[
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^$", "match_all": true }
]
},
{ "keys": ["tab"], "command": "indent", "context":
[
{ "key": "text", "operator": "regex_contains", "operand": "\n" }
]
},
{ "keys": ["tab"], "command": "next_field", "context":
[
{ "key": "has_next_field", "operator": "equal", "operand": true }
]
},
{ "keys": ["tab"], "command": "commit_completion", "context":
[
{ "key": "auto_complete_visible" },
{ "key": "setting.auto_complete_commit_on_tab" }
]
},
There is nothing bound to ctrl+space
Thank You for Your time, Landis.
You don’t have to define anything in your user file. It is still not clear to me why the completion was not triggered.
what should i look at to figure this out? if it's not a keybinding, how does it trigger the popup dialog?
thanks, Landis.
console after checking for updates or dependencies. You can see Unicode Completion reloading:
- - -
reloading plugin Table Editor.widechar_support
reloading plugin UnicodeCompletion.emoji_symbols
reloading plugin UnicodeCompletion.latex_symbols
reloading plugin UnicodeCompletion.unicode_completion
reloading plugin UnicodeCompletion.unicode_convert
reloading plugin UnicodeCompletion.unicode_lookup
reloading plugin UnicodeCompletion.unicode_mixin
reloading plugin WordHighlight.word_highlight
reloading plugin CSSOrder.cssorder
- - -
plugins loaded
package 'UnicodeCompletion.sublime-package' is installed in /home/landis/.config/sublime-text-3/Installed Packages/ running openSuSE 13.2.xxx and KDE 4.14.9
The keybindings are defined here https://github.com/randy3k/UnicodeCompletion/blob/master/Default.sublime-keymap
You just need to make sure that you didn't overwrite the tab
key.
You just need to make sure that you didn't overwrite the
tab
key.
in the above Default Keybinding, 'tab' is defined many times. there is No tab binding in User Keybindings.
FYI, I'm using Sublime Text 3, Stable Channel, Build 3176
@randy3k , ya, I don't see anything in the keybinding file referencing "unicode_completion.." Should I add the bindings you pointed me to, in my User Keybinding file?
Landis.
Having add the bindings from the link you supplied to my User Keybindings... exit and start ST3 Still Noting. Enabled under Edit. [type] \alpha[tab] \pi[tab] nothing. Landis.
Did you turn off the tan competitions in sublime settings? Everything should work out of the box without extra configurations.
what are 'tan competitions'? but, no I did not 'turn it, them off'
does it matter the 'syntax' of the current document? plain text, css, php, etc?
@randy3k, thank you for your time. I've been using ST3 for 4 years without a decent 'character insert', using cut and past from an existing project.. Thanks Again. Landis.
I meant tab completions...there is such a setting in sublime preferences. I really don’t know why it does not work. I guess you could try a fresh installation of sublime to see if it works. Syntax should not matter for the tab completion.
thanks. i'll play with it when i've time. Landis.
@randy3k SORRY. I was looking at my User Settings, I wanted to make sure my 'tab' was set to 2 spaces and ... I noticed that "tab_completion": was set to false... I remember Not liking the auto-correction of what I was typing... can't have it all, i guess. I changed to true and Unicode Completion work immediately after Edit > U C Enable.
\alpha[tab] α \pi[tab] π \phi[tab] ϕ \sqr[tab] √ \deg[tab] ° \^2[tab] ² \^3[tab] ³ ---- bam!
now i just have to create a keybinding for U C Enable and life will be good again. Thanks, Landis.
decided on an easier method than defining and remembering yet another short-cut key combo... alt+e(edit menu) > up-arrow (once) > enter (U C Enable is last item on edit menu) Done. Landis.
I normally do a command palette search with uct
FYI... I've been going crazy trying to figure out what was 'auto-completing'
with Edit > Unicode Completion Enabled, typing \alpha \pi, \:beer or \anything else does Nothing. no pop-up, no anything.
If I use ctrl+shift+unicode comp... > and chose 'Unicode Completion: Unicode Lookup, the character is copied to my clipboard and I can paste, no problem.
What am I missing to get the 'Completion' (popup) part?
Do I need LaTeX something installed? There are no 'latex_symbols' in openSuSE repo. There is, latex mnsybols. Do I need a LaTeX editor or 'engine' installed?
Please. I'd like to use this package, i looks more efficient than any other I've tried.
Landis.