jlebon / textern

A Firefox add-on for editing text in your favourite external editor!
GNU General Public License v3.0
141 stars 21 forks source link

Nothing happens when I press ctrl+shift+e #20

Open joudinet opened 6 years ago

joudinet commented 6 years ago

Hi, I've just installed both the WebExtension (from official FF repo) and the native application by cloning this repo, and following the instructions, i.e., doing a sudo make native-install. Unfortunately, pressing ctrl+shift+e does nothing. Not output on the console neither :-/ I'm on Ubuntu 17.10 and Firefox Quantum v57.0.1 (64bit): $ python --version 2.7.14 $ python3 --version 3.6.3

Any idea how I can debug this issue? I also use uMatrix as a FF extension. No idea if this might be related...

jlebon commented 6 years ago

Which editor are you using? Have you tried with something like ["gvim", "-f"] or ["gedit"]? Also try installing for your local user only rather than globally (make native-install USER=1).

joudinet commented 6 years ago

I let the default value for external editor: ["gedit"] I've just tried again, this time by installing for my local user instead of globally. Installation seems ok but still nothing when I press "Ctrl+Shift+E" from a textarea:

$ make native-install USER=1
sed -e 's|@@NATIVE_PATH@@|/home/johan/.local/libexec/textern/textern.py|' native/textern.json.in > native/textern.json
mkdir -p /home/johan/.mozilla/native-messaging-hosts
cp -f native/textern.json /home/johan/.mozilla/native-messaging-hosts
mkdir -p /home/johan/.local/libexec/textern
cp -rf native/textern.py native/inotify_simple /home/johan/.local/libexec/textern
jlebon commented 6 years ago

Hmm, maybe try a different shortcut as well? Some distros have Ctrl+Shift+E mapped already. Also make sure you check the browser console (Ctrl+Shift+J), in case you were checking the page console only.

fenix011 commented 5 years ago

Hi, same here ... , no joy, after :

Submodule 'native/inotify_simple' (https://github.com/chrisjbillington/inotify_simple) registered for path 'native/inotify_simple'
Cloning into '/home/jordi/Utils/textern/native/inotify_simple'...
remote: Enumerating objects: 166, done.        
remote: Total 166 (delta 0), reused 0 (delta 0), pack-reused 166        
Receiving objects: 100% (166/166), 35.92 KiB | 0 bytes/s, done.
Resolving deltas: 100% (101/101), done.
Submodule path 'native/inotify_simple': checked out '979648cefa83dda61611ed9d8fb1fe4b644950be'
jordi@tao:~/Utils$ cd textern/
jordi@tao:~/Utils/textern$ echo sudo make native-install
sudo make native-install
jordi@tao:~/Utils/textern$ ls
LICENSE  Makefile  native  README.md  webex
jordi@tao:~/Utils/textern$ ls native/
inotify_simple  textern.json.in  textern.py
jordi@tao:~/Utils/textern$ sudo make native-install
sed -e 's|@@NATIVE_PATH@@|/usr/local/libexec/textern/textern.py|' native/textern.json.in > native/textern.json
mkdir -p /usr/lib64/mozilla/native-messaging-hosts
cp -f native/textern.json /usr/lib64/mozilla/native-messaging-hosts
mkdir -p /usr/local/libexec/textern
cp -rf native/textern.py native/inotify_simple /usr/local/libexec/textern
jordi@tao:~/Utils/textern$ make native-install USER=1
sed -e 's|@@NATIVE_PATH@@|/home/jordi/.local/libexec/textern/textern.py|' native/textern.json.in > native/textern.json
/bin/sh: 1: cannot create native/textern.json: Permission denied
Makefile:24: recipe for target 'native/textern.json' failed
make: *** [native/textern.json] Error 2
jordi@tao:~/Utils/textern$ sudo make native-install USER=1
sed -e 's|@@NATIVE_PATH@@|/root/.local/libexec/textern/textern.py|' native/textern.json.in > native/textern.json
mkdir -p /root/.mozilla/native-messaging-hosts
cp -f native/textern.json /root/.mozilla/native-messaging-hosts
mkdir -p /root/.local/libexec/textern
cp -rf native/textern.py native/inotify_simple /root/.local/libexec/textern

pressing Ctrl+S+E does nothing. I tried changing the keyboard shortcut mapping.

What am i missing ?

EskoJTH commented 5 years ago

@jordila maybe try Ctrl+Alt+e instead. You realize that S is probably interpreted as the letter s and not as Shift. Make sure you have gedit installed? Also when you run "sudo make native-install USER=1" you install the textern for the user "root" not your user "jordi". This means that the Firefox probably won't find the user specific installation (but the global version should be there already). Be sure to have the firefox extension settings in correct format. I don't understand why you get that permissions error there. Seems like for some reason some of the file permissions under the repo you pulled are the incorrectly. If you ran git clone as sudo then that might have caused something weird. Check the file permissions with ls -l and if it says "... root root ..." there in some files instead of "... jordi jodri ..." then that is probably a problem. Just remove the repo and install it again without sudo in that case. It is a bad habit to be showing sudo everywhere anyway. Also note that the hotkey command does not work on all text boxes. The comment text area here on github seems to be one where it works.