ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

q KDB

by komsit37 ST3

Sublime Text Plugin for q/kdb

Details

Installs

  • Total 550
  • Win 303
  • OS X 167
  • Linux 80
Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8
Windows 1 0 0 1 0 0 2 0 1 0 3 1 0 2 0 2 2 0 1 0 0 1 2 0 0 1 0 1 0 1 2 0 0 1 3 1 0 0 0 1 0 0 0 1 0 1
OS X 1 0 1 0 0 1 0 0 0 2 0 0 2 3 1 0 0 2 0 0 0 0 2 1 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
Linux 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

q REPL for Sublime Text 3

Connect to remote q session and execute q statements in Sublime Text

Image of screenshot * Cmd + alt + q to add q connections and quickly switch between them * Cmd + Enter or Cmd + e to send highlighted line or block text
* Cmd + j to execute text and get result as json (by calling .j.j to results - requires .j.j in kdb 3.x) * 2 result modes: output panel and inline popup * Syntax higlighing (based on kimtang's https://github.com/kimtang/sublime-q)
* shows rows, column, time, mem usage at status bar
* auto complete
[change Cmd to Ctrl for windows]

Shortcut

  • F1 open help at cursor
  • F2 print variable at cursor
  • F3 show type at cursor
  • F4 show table and columns
  • F5 show environments
  • shift + F5 show memory usage

[hold shift to show output in inline popup instead of output panel]

Installation

via package control https://packagecontrol.io/packages/q%20KDB

Contribute

Clone this git repository into your Sublime Text 3/Packages directory. NOTE: You may need to change dir to q KDB

  • Windows: C:\Users\[username]\AppData\Roaming\Sublime Text 3\Packages
  • OS X: ~/Library/Application Support/Sublime Text 3/Packages
git clone https://github.com/komsit37/sublime-q.git

From sublime text, run package control: satisfy dependencies (you may need to open package folder in sublime text first). This will install numpy as a dependency package to your packages folder

Tested on OSX and Windows 8, 10

Supported OS

  • osx_x64
  • windows_x64
  • linux_x64

Not supported OS

Support can be easily extended by adding proper numpy 1.8 build with python 3.3 (see https://github.com/komsit37/sublime-q/issues/12). Please send PR if you can build any of these: * osx_x32 * windows_x32 * linux_x32

This plugin is for Sublime Text 3. For Sublime Text 2, please use https://github.com/komsit37/sublime-q-2

To build numpy

Included numpy version should work for osx and windows 64bit, but if you need to build numpy

  1. download python 3.3
  2. download http://sourceforge.net/projects/numpy/files/NumPy/1.8.1/
  3. run python3.3 setup.py install
  4. numpy will be installed to your default python lib
  5. then follow steps here https://github.com/komsit37/sublime-q/issues/12