Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\alpha Does Nothing. #12

Open
LandisTwo opened this issue Feb 8, 2019 · 22 comments
Open

\alpha Does Nothing. #12

LandisTwo opened this issue Feb 8, 2019 · 22 comments

Comments

@LandisTwo
Copy link

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.

@randy3k
Copy link
Owner

randy3k commented Feb 8, 2019

You need to trigger the completion menu by either tab or ctrl+space

@LandisTwo
Copy link
Author

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.

@randy3k
Copy link
Owner

randy3k commented Feb 8, 2019

there are no dependencies except for the Unicode font

@LandisTwo
Copy link
Author

I'm using 'Liberation Mono' but again it works via ctrl+shift+p (package panel).
What should the Key-Binding code look like?

@LandisTwo
Copy link
Author

LandisTwo commented Feb 8, 2019

@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.

@randy3k
Copy link
Owner

randy3k commented Feb 8, 2019

You don’t have to define anything in your user file. It is still not clear to me why the completion was not triggered.

@LandisTwo
Copy link
Author

LandisTwo commented Feb 9, 2019

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

@LandisTwo
Copy link
Author

LandisTwo commented Feb 9, 2019

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

@randy3k
Copy link
Owner

randy3k commented Feb 9, 2019

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.

@LandisTwo
Copy link
Author

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

@LandisTwo
Copy link
Author

@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.

@LandisTwo
Copy link
Author

LandisTwo commented Feb 9, 2019

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.

@randy3k
Copy link
Owner

randy3k commented Feb 9, 2019

Did you turn off the tan competitions in sublime settings? Everything should work out of the box without extra configurations.

@LandisTwo
Copy link
Author

what are 'tan competitions'?
but, no I did not 'turn it, them off'

@LandisTwo
Copy link
Author

does it matter the 'syntax' of the current document?
plain text, css, php, etc?

@LandisTwo
Copy link
Author

@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.

@randy3k
Copy link
Owner

randy3k commented Feb 9, 2019

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.

@LandisTwo
Copy link
Author

thanks.
i'll play with it when i've time.
Landis.

@LandisTwo
Copy link
Author

LandisTwo commented Feb 11, 2019

@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.

@LandisTwo
Copy link
Author

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.

@randy3k
Copy link
Owner

randy3k commented Feb 11, 2019

I normally do a command palette search with uct

@LandisTwo
Copy link
Author

FYI... I've been going crazy trying to figure out what was 'auto-completing' when I tried to use \pi for greek pi... I've done regex file searches and the only place it appeared was in json files owned by CSSnext.. Thought it was a browser normalization addon. guess not.I disabled long ago cssnext and nothing changed.. out of frustration I Removed cssnext and Bahm.. I get the auto-complete pop-up/drop-down now appears and I now have access to All of Unicode Completion's characters....Thank You for writing it.Landis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants