completion

Is there a Perl equivalent for Emacs' ido-completion?

I've built a number of work-specific helper functions that could be useful for other members of my teambut I've written them all in Emacs' Elisp. And getting them to convert from Notepad++ is NOT going to happen. So, I'm thinking convert the functions to Perl. No problem. Except I use ido-completion all the time to limit responses: ...

Bash completion for make with generic targets in a Makefile

Hello, I have a Makefile where most of my targets are created generically through a canned sequence. It seems that bash completion only suggests completions for normal targets, e.g. target_name: #$@ and not for generic targets. Is there any way to make bash completion complete all the targets, even though they are not made ex...

Control-r reverse-i-search in Cygwin bash: how do you "reset" the search?

Question: How do you tell ctrl-r reverse-i-search to "reset itself" and start searching from the bottom of your history every time? Background: When using reverse-i-search in bash, I always get stuck once it is finished searching up through the history and it cannot find any more matches. Sometimes I hit escape and re-invoke ctrl-R a se...

Find file in directory from command line

Noob question here, trying to wean myself off of IDEs. In editors/ides such as eclipse and textmate, there are shortcuts to quickly find a particular file in a project directory. Is there a similar tool to do full path completion on filenames within a directory (recursively), in bash or other shell? I have projects with alot of direc...

Vim: Filename completion in reverse order

To open a file in vim, I usually type ":e " and then hit tab until the file I want appears. However, I always get in a rhythm and inadvertently go ONE past the desired file. Without knowing how to move backwards, I end up tabbing all the way to the end and repeating the whole process. Is there a way to perform the filename completion ...

Win32 Overlapped I/O - Completion routines or WaitForMultipleObjects ?

I'm wondering which approach is faster and why ? While writing a Win32 server I have read a lot about the Completion Ports and the Overlapped I/O, but I have not read anything to suggest which set of API's yields the best results in the server. Should I use completion routines, or should I use the WaitForMultipleObjects API and why ? ...

How do I read only available data off a windows COM port?

I have a file handle to a serial (COM) port. I need to read whatever data is available immediately and not wait for additional data to be sent. How can I determine how much data is available? I can call SetCommMask(myHandle, EV_RXCHAR) and then wait for an event to tell me that some data is available, but that won't tell me how much I ...

How to call a function after the update progress is completed in an update panel?

I have a button in the update panel. Another function say function1 is executed in the click event of this button. I want to call a javascript function once the function1 completes execution. How will I know when the function1 has completed its execution? ...

Cocoa Controllers - best practice for notifying on completion, for disposal?

A general question on style and best practices... I have an ObjC controller object. After alloc/init of the object, I get it to do a job asynchronously: [myObject doSomeThingsOverTime]; The method sets things in motion, and then returns immediately. Question: what is the best way to be notified of the result in the future, so that I...

How do I change bash history completion to complete what's already on the line?

Hi there, I found a command a couple of months ago that made my bash history auto-complete on what's already on the line when pressing the up arrow: $ vim fi [press up] $ vim file.py I'd like to set this up on my new computer, because it saves a lot of time when keeping a big history. The problem is that I can't for the life of me r...

Programming customized tab completion for zsh

Sorry if my google fu is too weak, but: I simply want to adjust zsh so that I can tab complete someappname -s using the contents (filenames) of ~/somedir For example: someapp -s f<tab> should cycle through completions based on the files starting with the letter f in ~/somedir . So I might end up with a command line like: "someapp...

Given a list of words - what would be a good algorithm for word completion in java? Tradeoffs: Speed/efficiency/memory footprint

I'm exploring the hardware/software requirements (ultimate goal is mobile Java app) for a potential free/paid application. The application will start with this simple goal: Given a list of relevant words in a database, to be able to do word completion on a single string input. In other words I already know the contents of the database ...

How can I configure vim so that movement commands will include underscores and CamelCase, but completion will ignore them?

For example, I currently have this: set iskeyword-=_ This has the effect of making this work: foo_bar If cursor is on "f", pressing w moves cursor to the underscore. Pressing again moves to the "b" in bar. This is the desired effect for movement, but has the undesired side-effect of breaking completion. Same story with CamelCas...

HOW TO make test.php continue with rest of coding without waiting for a function to complete task?

Hi there, This is the case. At test.php, I have a function dotask(a,b,c,d); This function need to do task that need 2-4 minutes to complete. Task including insert new record into db, curl call to other url to do task and etc. However, I want test.php to: Just make sure dotask(a,b,c,d) is called, no need to wait until task completed th...

Tcsh and/or bash directory completion with variable hidden root prefix

I'm trying to set up directory completion in tcsh and/or bash (both are used at my site) with a slight twist: for a particular command "foo", I'd like to have completion use a custom function to match the first /-delimited term to an actual subtree node, and then follow normal directory completion for any successive terms. It is sort of...

TextMate - completion using an external file or file contained in project?

Does anyone know how to get TextMate to search an external file (or even the files contained in a TextMate "project") with which to perform word completion? I'm coding some stuff on the C64 (using TextMate to write the code) and I have an external file containing labels for all of the hardware registers/kernal routines e.g VIC2Interupt...

How to enable git file tab completion with zsh compinit?

I have a problem with the zsh tab completion: After running: autoload -U compinit compinit Git tab completion for files does not work any more. For example if I type git add my_f to complete my_file, nothing happens. The zsh git completion only seems to work for git branches and tags. Without the compinit stuff, git file completion wo...

Eclipse: code completion based on snippets

I would like to accomplish two tasks at once. First, to move my snippets of code from .txt files and be able to tag them/organize better. Second, assign shortcuts to those snippets that will allow me to type "p" + TAB which will render assigned snippet (I don't care of cursor position etc) ...

Where can I modify (at least find the files) completions in Vim?

I turned on completion in Vim: autocmd FileType python set omnifunc=pythoncomplete#Complete autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS autocmd FileType html set omnifunc=htmlcomplete#CompleteTags autocmd FileType css set omnifunc=csscomplete#CompleteCSS autocmd FileType xml set omnifunc=xmlcomplete#CompleteTa...

Problem mapping Tab to Omicompletion in GVim

Omnicompletion works pressing <C-X><C-O> making a dropdown list appear. I wanted to map it as <S-Tab> <C-X><C-O> but first I wanted to test it as: <C-F5> <C-X><C-O>. It does complete the word but the dropdown list doesn't show up. (the same happens with the plugin SuperTab). Any suggestions? EDIT: *it Works* like this inoremap <S-F5> <...