completion

Company mode (Emacs plugin) back-end could not be initialized?

Every time I initiate company-mode with M-x company-mode this message shows up: Company back-end 'company-semantic' could not be initialized Company back-end 'company-ropemacs' could not be initialized Company back-end 'company-pysmell' could not be initialized The completion works but I wonder whats the meaning of that message and ho...

Does Emacs has word and line completion (like Vim's insert mode completion)?

Vim completes words and lines with CTRL-X P and CTRL-L. There's a Emacs plugin called Company mode but this plugin interfere and cause conflicts with lots of things within Emacs (with global linum and yasnippets). I know that I can complete words with CTRL-/ in Emacs. But it is possible to take previously written lines to complete code? ...

Is it possible to set hippie-expand to show up code in a dropdrown menu in Emacs?

Is it possible to set hippie-expand to have a dropdown menu in Emacs? Or does Emacs have any completion/expansion system with dropdown menu? PS: Already tried Company and Auto Complete plugins but their interfere too much with others plugins. ...

IPHONE SDK : NSURLConnection asynchronous / wait completion bug ?

Hello all, I am trying to use NSURLConnection in asynchonous mode and wait for completion. During the wait, I use NSRUNLOOP to handle events. Its works in most cases (3G and WIFI) but the application hangup randomly in GSM DATA and EDGE environnement. Anyone can help me ? My code: (void) connectionDidFinishLoading:(NSURLConnection ...

Ajax /jQuery finding if user completed the download

Here is what I am trying to do: I am making a custom text file containing a test. This test is unique to the user and well I don't want my server to stack all those text files. Is there a way to use Ajax/JavaScript/jQuery to find if the user has already finished the download and if they have get a return value (1 if finished) so the ...

How to remove the file extension in a zsh completion?

I want to adjust zsh so that I can tab complete: myprog <tab> using all *.foo files in ~/somedir, but have it so that it displays them without the .foo extension. Is there any way to do this? This is what I have so far: #compdef myprog typeset -A opt_args local context state line local -a mydirs mydirs="(. ~/somedir)" _arguments -...

scroll/search JList when user starts typing

I would like to implement one of the fanciest features I every now and then. I would like to allow a user to click on a JList and if words are typed, do a query and advance the caret to the next match (prefix). Is there and example of such an implementation in Java somewhere? I'm thinking a combination of key listeners, getNextMatch() an...

bind key to complete filename wherever the context is in Zsh

Sometimes I want a filename instead of what zsh guesses for me. For example, I have a PNG file without a proper .png suffix, which makes zsh think it isn't a picture and won't list it when I type Tab to complete arguments of display. I am wondering if there is a key sequence that completes for a filename wherever the context is, like ^X...

Idea: CodeIgniter codecompletion in Eclipse

I just figured out that all code completion for Eclipse is stored in plain files located here (example): .\eclipse\plugins\org.eclipse.php.core_2.1.1.v20090921-1100\Resources\language I tried adding global variables like $_POST, $_GET, $_SERVER to the end of basic.php but without any luck (did try to restart Eclipse). Is there a w...

Auto-Completion in Unix VI editor

Hey guys, after using graphical IDE's like Visual Studio, I'm used to pressing CTRL+Space to auto-complete a variable or function name. Now, I know such a thing isn't completely possible in VI, but I heard there was a list of commands that could be mapped that allowed automatic completion of variables and functions in the current file op...

python - file copy completion?

In Linux, How can we know if a file has completed copying before reading it?. (In Windows, OSError is raised.) ...

When are IO completion port packets sent and when not?

I'm currently working on an IPC mechanism based on named pipes using a IO completion port. Unfortunately I have some troubles with the msdn documentation because it's quite unclear to me in which cases calls to ReadFile/WriteFile result in a completion packet. The case when FALSE is returned with ERROR_IO_PENDING is clear, but what abo...

Writing a custom bash-completion rule.

I have directories full of files with the same prefix, which I want to be able to quickly open in vim. For example, I might have: $ ls * bar: bar_10 bar_20 bar_30 foo: foo_10 foo_20 foo_30 What I want is to be able to be in one of these directories and type: $ vim <TAB> and it autocomplete to: $ vim bar_ To achieve this I a...

How to be sure that rendering is complete after AJAX request

After an AJAX request to download a fragment of html, xmlhttp.readyState goes to 4 when the download is complete. It looks like readyState == 4 says nothing (and should say nothing, imo) about the browser's progress in rendering the downloaded matter. So if my JS depends only upon readyState == 4 before starting to use the downloaded h...

Vim case-insensitive filename completion

I recently noticed how to configure bash to do case-insensitive filename completion (in /etc/inputrc, add: set completion-ignore-case on), now how do I get this in vim? ...

Can I change vim completion preview window height?

I'm using Eclimd for completion, it generates a lot of helpful info about function, but in 1-line preview window it looks messy. (same window uses by omni-completion) So: 1. Is there any way to change default preview window height? 2. Make preview-popup instead of preview-window? ...

what text editor supports mysql autocompletion?

Does anybody know what text editor supports a feature which is auto completion for codes in mysql prompt? I really have trouble in finding the answer. I cant find what text editor it is. Im dealing with my research project now. Thanks for replies. ...

ZSH to auto-complete directories in command-line arguments?

I'm a new ZSH convert on OSX (git status in the prompt was my main driver to make the leap). Everything seems to be working swimmingly but I'm missing something from BASH.. In BASH I would start to run a CLI PHP script that's built around Symfony's CLI tools. Typically I would run the command like this: $> php doctrine --configuration...