What editors are best used for q coding? And how to get the syntax

Actually recently I’ve been using Nick’s emacs config in spacemacs (https://github.com/syl20bnr/spacemacs) with vim bindings of course

Cheers,

   Attila

I am now using lighttable. Syntax highlighting for q is there already , quite nice J. What is missing is a plugin to have repl supported for q. Anyone there working on this?<o:p></o:p>

<o:p> </o:p>

Thanks,<o:p></o:p>

<o:p> </o:p>

Kim<o:p></o:p>

<o:p> </o:p>

Von: personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] Im Auftrag von Attila Vrabecz
Gesendet: Donnerstag, 24. September 2015 06:19
An: [kdb+] [kdb+]
Betreff: Re: [personal kdb+] What editors are best used for q coding? And how to get the syntax highlighting<o:p></o:p>

<o:p> </o:p>

Actually recently I’ve been using Nick’s emacs config in spacemacs (https://github.com/syl20bnr/spacemacs) with vim bindings of course<o:p></o:p>

<o:p> </o:p>

Cheers,<o:p></o:p>

   Attila<o:p></o:p>

<o:p> </o:p>

On 25 Aug 2015, at 15:59, Simon Garland <simon@kx.com> wrote:<o:p></o:p>

<o:p> </o:p>

my vim stuff only does syntax colouring: <o:p></o:p>

<o:p> </o:p>

https://github.com/simongarland/vim<o:p></o:p>

<o:p> </o:p>

if you want more advanced features like communicating with a q session see attila’s version at:<o:p></o:p>

<o:p> </o:p>

http://code.kx.com/wsvn/code/contrib/avrabecz/vim<o:p></o:p>

<o:p> </o:p>

On 25 August 2015 at 16:22, Nick Psaris <nick.psaris@gmail.com> wrote:<o:p></o:p>

i can’t claim to know what Simon’s vim mode does.  but q-mode does perform syntax highlighting<o:p></o:p>

and in addition, it allows you to communicate with a q/qcon process so you can send single lines, regions, functions or whole buffers.  (very similar to the way ESS-mode allows you to interact with an R/S process)<o:p></o:p>

<o:p> </o:p>

On Tue, Aug 25, 2015 at 9:58 PM, Pratyush Raman <prtyshrmn@gmail.com> wrote:<o:p></o:p>

Hey Nick,<o:p></o:p>

Yes huge fan of emacs- does this have all features that Simon has planted in vim?<o:p></o:p>

Thanks vm<o:p></o:p>

Pratyush

How about chrome? 

https://github.com/komsit37/chrome-devtools-q

It support syntax highlighting and REPL on the browser. Also, it wraps your code in a function so it’s safe to run on rdb.

It’s not be a full fledge IDE, but I find it useful for quick query on hundred of kdb instances that I have at my work :)

You will need to install the plugin from source at the moment, but I might release to chrome store if people find it useful.

Komsit

Nice,<o:p></o:p>

<o:p> </o:p>

Thx for sharing.<o:p></o:p>

<o:p> </o:p>

Kim<o:p></o:p>

<o:p> </o:p>

Von: personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] Im Auftrag von Komsit Prakobphol
Gesendet: Donnerstag, 5. November 2015 21:02
An: Kdb+ Personal Developers
Betreff: [personal kdb+] Re: What editors are best used for q coding? And how to get the syntax highlighting<o:p></o:p>

<o:p> </o:p>

How about chrome? <o:p></o:p>

https://github.com/komsit37/chrome-devtools-q<o:p></o:p>

<o:p> </o:p>

It support syntax highlighting and REPL on the browser. Also, it wraps your code in a function so it’s safe to run on rdb.<o:p></o:p>

It’s not be a full fledge IDE, but I find it useful for quick query on hundred of kdb instances that I have at my work :)<o:p></o:p>

<o:p> </o:p>

You will need to install the plugin from source at the moment, but I might release to chrome store if people find it useful.<o:p></o:p>

<o:p> </o:p>

Komsit<o:p></o:p>

On Tuesday, August 25, 2015 at 5:42:46 PM UTC+9, Pratyush Raman wrote:<o:p></o:p>

I have tried vim, emacs and sublime. I find significant quality of life improvement when using highlighting while I code in q.<o:p></o:p>

Emacs does not seem to have an active contribution to syntax highlighting. Vim’s highlights written by Simon Garland seems to be a standard.<o:p></o:p>

<o:p> </o:p>

Let me know what are you using and what are your preferences?<o:p></o:p>


Submitted via Google Groups

How could I get syntax highlight when I copy from a kdb/q editor and paste on this forum?

Can I have custom prefix and suffix stored for each host:port combination rather than closures? Closures work like prefix=“{” and suffix=“}

Yan,

> How could I get syntax highlight when I copy from a kdb/q editor and paste on this forum?

http://vim.wikia.com/wiki/Pasting_code_with_syntax_coloring_in_emails

Simon wrote:

>  my vim stuff only does syntax colouring: 

https://github.com/simongarland/vim

I have updated the plugin. Now you can change custom template. Interestingly, if you change it to ‘system"%0"’, you can almost use q as a remote terminal!

ty

My query takes a long time to run and it gives a long resultset that spans multiple pages. After clicking the pageDown link the URL becomes

http://localhost:7016/?[32

Can I write the query in such a way that it takes advantage of the row number in the URL to fetch just enough rows for display? The built-in hdb browser already does that.

You can increase html output size by running

system"C 1000 1000"

but the limit is 2000 rows. And I actually like it this way because it’s much faster and use less memory than fetching all results in one go

Going forward, I think it’s better to raise feature request/issue for the plugin in the github page instead of in this post. Since this is a bit off the topic

Hi, I would like to give it a try but look like “Load unpacked extension” is disabled?

http://www.howtogeek.com/191364/how-do-you-re-enable-non-web-store-extensions-in-the-stable-and-beta-channels-of-chrome/

Did you try checking the developer mode on the top right of the extension page? see the attached screenshot