I have tried vim, emacs and sublime. I find significant quality of life improvement when using highlighting while I code in q.
Emacs does not seem to have an active contribution to syntax highlighting. Vim’s highlights written by Simon Garland seems to be a standard.
Let me know what are you using and what are your preferences?
I’ve added some plugins for Q for Atom (www.atom.io) editor. It is node/chrome based and thus slower than native editors but you can easily extend it if you need something.
i can’t claim to know what Simon’s vim mode does. but q-mode does perform syntax highlighting
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)
nick: i have been waiting for your q-mode. can your q-mode automatically add a prefix to every expression submitted to kdb thru ipc? one useful prefix i often use is ‘system “d .rdb”’ to make sure that stuff goes to the .rdb namespace. the ‘system “d .rdb”’ is only effective during the ipc call. so it has to be submitted as a prefix every time.
And there is also a plugin where you can send q commands directly to a q process via kdb+ studio. The idea is to load kdb+ studio into sublimerepl via scala. From there you can execute any q commands from sublime and have the results displayed in kdb+ studio.<o:p></o:p>
<o:p> </o:p>
Unfortunately the plugin depends on sublimerepl and scala and the installation is not trivial. So thats why it is not available to the community yet. <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 Pratyush Raman Gesendet: Dienstag, 25. August 2015 16:38 An: Kdb+ Personal Developers Betreff: [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>
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>
I also use sublime, it’s much better to view at the very least, I and a friend wrote a simple plugin to send q queries from sublime to q servers over http. It’s not much, but it’s something! We’re yet to write something to send queries over tcp.
Kim, Thanks for your highlighting plugin!
If the above mentioned plugin can be used by a wider community, I’d be happy to re-write it.
Von:personal-kdbplus@googlegroups.com [mailto:personal-kdbplus@googlegroups.com] Im Auftrag von Pratyush Raman Gesendet: Mittwoch, 26. August 2015 19:19 An: Kdb+ Personal Developers 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>
I want to change the way assignment changes formating.<o:p></o:p>
e.g., "func: `abc " formats func to a symbol<o:p></o:p>
I have settled on vim for now. Simon’s script for syntax is very useful.
I found Sublime equally good, but since most of my work is Unix based, makes more sense to use vim.