Coder Social home page Coder Social logo

inputhelper's Introduction

Installation

Install this repository via Package Control

Manual Install

cd ~/.config/sublime-text-2/Packages

git clone https://github.com/xgenvn/InputHelper.git

Usage

  • FIRST, make sure you can use your Input Method normally (test it in some textinput field)
  • To insert text by using Input Method, use: Ctrl+Shift+Z
  • After input text, use: Ctrl+Enter or Enter to place text to last cursor position, or replace selected words on current context.
  • While text is selected after input, use Ctrl+Enter again to reach new line.
  • Usual key combination: Ctrl+Shift+Z -> Enter -> Ctrl+Enter (or End button to end of line)

Thanks

  • This plugin is based on ColorPicker for inspiration.

inputhelper's People

Contributors

chengshiwen avatar fichtefoll avatar hongruiqi avatar ladios avatar xender avatar xgenvn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

inputhelper's Issues

Could not work on Ubuntu 12.04

Hi I'm using Ubuntu 12.04 64bit, with Sublime Text 2 version 2.0.2 (build 2221) installed.
I installed InputHelper with Package Control.
Each time I press Ctrl + Shift + Z, nothing happens, when I press Ctrl + ` to view the console, the following error was printed:

Traceback (most recent call last):
  File "./sublime_plugin.py", line 362, in run_
  File "./inputhelper.py", line 21, in run
  File ".\subprocess.py", line 633, in __init__
  File ".\subprocess.py", line 1139, in _execute_child
OSError: [Errno 13] 权限不够

I've read all the issues under this repo, and found no solution so far.

This information might also help: when I run python linux_text_input_gui.py in lib folder, the input box does appear, and after pressing Enter, the content is also printed in the terminal.

not working in st3

According to the official documentation, a .no-sublime-package file is needed.

Also the code in linux_text_input_gui.py should be updated. The following should be used instead of pygtk,

#!/usr/bin/env python3
from gi import pygtkcompat
pygtkcompat.enable()
pygtkcompat.enable_gtk(version='3.0')

import gtk

does not display the input box in Arch Linux

hi. I'm using Sublime Text 2.0.1 build 2217
Arch Linux with Gnome 3.6
ibus works fine in other GTK and QT app however it doesn't work with Sublime.
I installed this Helper by using Package Control n' Manual method and they install fine.

However when I press ctrl + shift + z the input box does not appear.
I tried to type in InputHelper, enter in the selector (ctrl + shift + p) and it also does not appears.

找不到 linux_text_input_gui.py 文件

Ubuntu 14.04 Sublime 3 beta
通过 Package Control 安装,调用时报错(控制台)

Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 549, in run_
    return self.run(edit)
  File "inputhelper in /home/xiaochi/.config/sublime-text-3/Installed Packages/InputHelper.sublime-package", line 21, in run
  File "X/subprocess.py", line 818, in __init__
  File "X/subprocess.py", line 1416, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: '/home/xiaochi/.config/sublime-text-3/Packages/InputHelper/lib/linux_text_input_gui.py'

手动复制 InputHelper 文件夹至 /home/xiaochi/.config/sublime-text-3/Packages 下,可以解决此问题。

Ctrl + Shift +Z not work

Ubuntu 16.04
Sublime Text 3 Build 3114

Traceback (most recent call last):
  File "/opt/sublime_text/sublime_plugin.py", line 574, in run_
    return self.run(edit)
  File "inputhelper in /home/gaoxiang/.config/sublime-text-3/Installed Packages/InputHelper.sublime-package", line 21, in run
  File "./python3.3/subprocess.py", line 819, in __init__
  File "./python3.3/subprocess.py", line 1448, in _execute_child
FileNotFoundError: [Errno 2] No such file or directory: '/home/gaoxiang/.config/sublime-text-3/Packages/InputHelper/lib/linux_text_input_gui.py'

last letter is missing and cursor loses focus.

My env: Ubuntu 14.04 Gnome 3 64bit, Sublime Text 2.0.2 (build 2221) and Sublime Text 3(build 3059), also Kairo-Dick.

Hi, I'm using an input field with nabi to input Hangul(Korean alphabet).
I've just found 2 problems.

First,

  1. When I press "Ctrl + Shift + z",
  2. Display the input field.
  3. I input Hangul.
  4. then I press "Enter" or "Ctrl + Enter".
  5. Display Hangul except for the last letter in editor.

If I Input "안녕하세요", then the last letter "요" is missing. display "안녕하세".

Two, cursor loses input focus in editor after I've input Hangul then press "Enter" or "Ctrl + Enter".
even English.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.