Re: [racket-users] Re: Concise way to get completions for Racket code?

2018-02-13 Thread nocheroot
This is definitely pointing me where I want to go, thanks. #lang racket (let ([n (make-base-namespace)]) (parameterize ([current-namespace n]) (eval '(define oneplusone (+ 1 1))) (filter (lambda (y) (regexp-match #px"^one" y)) (map (lambda (x) (symbol->string x))

[racket-users] Re: Concise way to get completions for Racket code?

2018-02-09 Thread nocheroot
Will your omni-completion also work in Vim? On Friday, February 9, 2018 at 3:52:30 PM UTC-6, HiPhish wrote: > > Thank you for finding that. I have used your snippet to add > omni-completion to > Neovim now. I need to file down some rough patches before I make it a > plugin, > but it works. Not

[racket-users] Re: Concise way to get completions for Racket code?

2018-02-08 Thread nocheroot
In case anyone else finds this helpful. I poked around the DrRacket source and found text:get-completions/manuals. This gave me a thread to pull. After more googling, docs, and reading more source I think I can answer my own question. The short answer is no. The long answer is sort of.

[racket-users] Concise way to get completions for Racket code?

2018-02-07 Thread nocheroot
My google-fu is failing me today. Is there a concise way in Racket to request possible completions for some Racket code? For example, in powershell I can ask System.Management.Automation.CommandCompletion for possible completions of the powershell code "ConvertTo-Json -" like this: $cmd =

Re: [racket-users] Quick regexp question

2018-02-02 Thread nocheroot
It is nice. I'll have to play with this as well. Thanks again everyone. On Friday, February 2, 2018 at 5:49:15 PM UTC-6, johnbclements wrote: > > > > > On Feb 2, 2018, at 3:21 PM, Matthew Butterick > wrote: > > > > > >> On Feb 2, 2018, at 10:23 AM, 'John Clements' via

Re: [racket-users] Quick regexp question

2018-02-02 Thread nocheroot
In the long run this is probably better than what I wanted. Thank you On Friday, February 2, 2018 at 12:23:48 PM UTC-6, johnbclements wrote: > > Not sure if this gets you as far as you want, but you could use a macro to > associate names with paren-wrapped items: > > #lang racket > >

[racket-users] Quick regexp question

2018-02-02 Thread nocheroot
Sorry if I've missed this in the documentation, but I don't see it, and it is starting to bother me. In Powershell. Python, and Splunk I'm able to perform automatic field extraction on strings and access the values of fields by name. Is there a way to do this in Racket? Of course, pairing