agda-mode icon indicating copy to clipboard operation
agda-mode copied to clipboard

Unicode input doesn't work

Open bgavran opened this issue 4 years ago • 11 comments

As the title says, in agda-mode I can successfully compile my .agda file and everything seems to work except the fact that I have to copy/paste unicode symbols. In Emacs writing \forall (or any other unicode code) would replace it with the corresponding unicode symbol, while in Atom nothing seems to happen.

Is there a special setting I have to turn on or something? I'm not sure how to debug this issue

bgavran avatar Sep 11 '19 06:09 bgavran

Here's a recording of me typing \forall on the editor: https://i.imgur.com/MwnqObR.mp4

If you hit \ you should see a "keyboard" pop up as in the video. I think there's nothing special you need to do to turn this on. Could it be some kind of OS-built-in input method getting in the way?

banacorn avatar Sep 13 '19 06:09 banacorn

Thanks for the prompt reply! Interesting, so pressing \ shoud not output \, but open this keyboard popup? Because that does not happen for me.

I had a suspicion that vim mode plugin might have been interfering, but I tried disabling it and it still doesn't work. I'm not sure what kind of OS-built-in input method might be getting in the way, since the character \ registers in Atom and gets written in the currently open buffer.

bgavran avatar Sep 13 '19 10:09 bgavran

You can go to "Settings > Keybindings" or open the "Key binding resolver" to see what's competing with agda-mode for \

banacorn avatar Sep 13 '19 11:09 banacorn

Thanks. So I went there (after uninstalling vim-mode-plus) and there appears to be nothing competing with agda-mode, as you can see: Screenshot_20190913_172600

Since I'm quite new to Atom (and I've been messing around with a bunch of things), there aren't many downsides to doing a complete reinstall (including the removal of cache and config files). After I did that, I installed only agda-mode and language-agda, opened my .agda file, started typing \forall, but still nothing happens.

agda_unicode

It feels like I'm missing something obvious, but I'm not sure what!

bgavran avatar Sep 13 '19 15:09 bgavran

Sorry for the inconvenience 😢 Perhaps something is wrong about agda-mode. Please open Atom in dev mode (atom -d or "View > Developer > Open In Dev Mode"), and then open the developer tool to see if To there's any error message ("View > Developer > Toggle Developer Tools")

banacorn avatar Sep 14 '19 06:09 banacorn

Okay, I opened the developer mode, switched to the Console tab and tried typing \forall, but there were no messages at all

bgavran avatar Sep 16 '19 06:09 bgavran

I also have the same problem here, \forall (or whatever) does not turn into unicode, and nothing in the dev console. Tell me if I can be of any help debugging this...

smimram avatar Sep 19 '19 11:09 smimram

BTW, the other binding alt-/ still allows to enter symbols.

smimram avatar Sep 19 '19 11:09 smimram

@smimram so alt-/ works but \ does not work, is that right? @bgavran does alt-/ also works for you?

This issue now looks a lot like #10 (I'm reopening this)

banacorn avatar Sep 20 '19 06:09 banacorn

Yes, alt-/ working but not \.

smimram avatar Sep 20 '19 07:09 smimram

Interesting, for me alt-/ also works (haven't tried it before), but not \. For me alt-/ is is already binded for some actions in my window manager so I prefer to use \ but I guess I will have to make due for now.

bgavran avatar Sep 27 '19 16:09 bgavran