by jrose » Tue Jul 31, 2012 6:46 am
What would really be ideal is if I could just make a completion and insert it where ever the caret is or at a specified location. For my project I have a central REPL command line type interface which is where I want to have all applications commands take place. So instead of cmd+F opening a search GUI I am focusing the REPL component, appending a new command line, and then just inserting my search command and moving the caret back to be inside the quotes
cmd+F
=> (search "|")
cmf+shift+F
=> (search-replace "|" )
what would be perfect for me though is the parameterized completion being able to be inserted then have the completion focus to handle being tabbed through
=> (search-replace [search-string] [replace-string])
Lastly, not sure if it would be too unconventionally for the AutoComplete classes but it would be really great if the event that is fired when a user hits enter and completes the completion could be accessed. I am attaching a key handler to the REPL RSTA that grabs the last form after the prompt => and then sends it on to the REPL process. If I could somehow hook an event listener up to the Completion, completed event I could bypass the need to hit enter to complete then enter to submit.