Meta tags:
author= Chris Granger;
description= ;
Headings (most frequently used words):
light, table, getting, started, with,
Text of the page (most frequently used words):
the (92), you (70), light (36), table (36), and (29), your (26), that (25), will (24), file (22), with (22), can (21), command (20), open (20), pane (16), code (15), editor (14), workspace (13), files (11), see (10), console (10), this (10), one (10), tab (10), results (10), from (10), for (9), new (9), there (9), set (9), browser (9), which (9), but (8), have (8), python (8), use (8), cmd (8), evaluate (8), what (7), syntax (7), find (7), clojure (7), evaluating (7), list (7), right (7), behaviors (6), are (6), want (6), them (6), key (6), inline (6), javascript (6), any (6), some (5), has (5), window (5), connect (5), let (5), choose (5), just (5), tabset (5), type (5), may (4), like (4), keymap (4), tree (4), bindings (4), already (4), save (4), function (4), only (4), when (4), simple (4), know (4), once (4), css (4), into (4), show (4), need (4), view (4), tabs (4), tabsets (4), add (4), navigate (4), another (3), settings (3), app (3), user (3), clicking (3), get (3), opening (3), option (3), not (3), easy (3), all (3), line (3), entire (3), client (3), current (3), html (3), program (3), each (3), print (3), block (3), going (3), box (3), appear (3), working (3), things (3), hitting (3), basic (3), bottom (3), click (3), also (3), folders (3), documentation (3), getting (3), started (3), customize (2), using (2), similar (2), keymaps (2), while (2), menu (2), way (2), nearly (2), inefficient (2), comes (2), place (2), these (2), typing (2), bring (2), format (2), help (2), inside (2), brackets (2), two (2), under (2), whether (2), good (2), examples (2), would (2), creating (2), example (2), feature (2), order (2), seeing (2), very (2), after (2), process (2), display (2), extension (2), isn (2), inject (2), evaluated (2), its (2), how (2), evaluation (2), commands (2), does (2), most (2), tell (2), result (2), prints (2), true (2), false (2), number (2), pretty (2), boxes (2), next (2), notice (2), check (2), telling (2), statement (2), don (2), however (2), nothing (2), error (2), try (2), out (2), such (2), teal (2), means (2), whatever (2), selecting (2), shift (2), enter (2), side (2), though (2), multiple (2), easily (2), begin (2), blank (2), old (2), recent (2), workspaces (2), useful (2), note (2), filter (2), where (2), options (2), gives (2), create (2), time (2), based (2), letters (2), item (2), other (2), keybinding (2), start (2), docs (2), configuration (2), section (2), 2012, chris, granger, aspect, dictate, font, size, color, themes, select, layout, tags, again, changing, lets, both, appearance, functionality, liking, provide, everything, often, hunting, through, common, name, few, decide, certain, actions, take, frequently, enough, binding, yourself, entitled, markup, uses, familiar, relatively, discern, auto, complete, sets, named, regardless, bind, toggle, focused, unindenting, length, convenient, dealing, whitespace, indicate, run, clj, available, refresh, connected, prompt, page, usually, ask, webpage, stand, alone, needs, local, context, languages, extensions, respective, language, interpreter, viewing, sufficient, lot, early, work, particularly, limitations, obvious, doesn, actually, produced, deduce, came, always, shows, helps, enormously, understand, noticed, hit, little, blue, mark, successfully, statements, return, anything, valid, expressions, expression, none, nil, null, string, etc, red, stack, trace, sort, prevented, makes, powerful, ability, write, cursor, else, canonical, hello, world, aren, immediately, apparent, numbers, information, provided, standard, output, labeled, stdout, said, allowing, treated, desire, consolidated, sometimes, choosing, split, drag, top, many, dividing, halves, thirds, bear, mind, additional, applies, whole, single, opens, between, called, url, bar, website, preview, locals, machine, clear, switch, back, button, been, added, access, later, make, individually, native, dialog, instead, left, folder, area, renaming, removing, adding, more, others, existing, untitled, being, computer, narrow, down, essence, long, those, could, ltd, match, customizing, experience, small, detail, here, associated, underneath, general, best, finding, ctrl, space, simply, main, screen, contains, important, link, directions, ever, lost, figure, something, web, lighttable, com, starting, videos, older, version, outdated, date, search,
Text of the page (random words):
getting started with light table light table getting started how do i what is other search getting started with light table note videos are based on an older version that has an outdated configuration format for up to date configuration see this section for keymaps and this section for behaviors starting light table so let s start by simply opening light table the main screen is pretty basic but it contains an important link light table s documentation these docs have basic directions if you ever get lost or need to figure something out you can open the documentation at any time from the help menu or on the web at docs lighttable com in general the best place to start finding things you can do in light table is use the command pane on the right by hitting ctrl space or going to view commands the command pane comes up where you can type in whatever you want to do the command pane is a filter list which is a useful feature that will narrow down the results based on what you type in essence it means you can type letters and as long as those letters appear in order in any list item the command pane will show that item to you for example i could type ltd to match light table s documentation you can find nearly any command in the command pane from creating new files to customizing your light table experience one other small detail to notice here is that any command that has a keybinding associated with it will show that keybinding in underneath the command in the list the workspace tree to begin working in light table all you need to do is create a new file or open an existing one cmd n or file new file will let you create a new file in a new tab which will be untitled for the time being you can also open a file already on your computer with cmd shift o or file open file if you re working with multiple files it s inefficient to open them individually with the native open dialog so instead we ll use the workspace by going to view workspace you can open the workspace tree on the left where you ll see the options to open a folder a file or recent workspaces if you right click on a blank area in the workspace it gives you the option to add files or folders if you right click on files and folders already in the workspace it gives you options such as renaming them removing them from the workspace or adding more folders inside others if you clear the workspace or open a new window of light table the workspace will be blank but you can switch back to an old workspace by clicking on the recent button and selecting any of your old workspaces it s also useful to note that once a file has been added to your workspace you can easily access it later with the navigate pane which you can bring up with cmd o the navigate pane is a filter list just like the command pane to make it easy for you to find your files tabs and tabsets light table opens each of your files as a tab so as you open multiple files you can easily navigate between them tabs don t have to be just your files though light table can also open a browser window in a tab if you open the command pane and begin typing browser you ll see an option called browser add browser tab this will open a browser window with the url bar at the bottom from there you can navigate to a website or preview locals files on your machine while your files are consolidated into tabs sometimes you need to see things side by side and for this there are tabsets to add a tabset open up the command pane and type tabset to find the command tabset add a tabset by choosing this command you ll see that light table will split your editor window and you can drag any open tabs to the top of the new tabset to view them there you can open as many tabsets as you d like dividing light table into halves thirds and so on bear in mind though that opening additional tabsets applies to the whole editor not just a single tab evaluation and the console one of the things that makes light table powerful is the ability to try out code right in the editor to see what it does to do this all you need to do is write some code in the editor and have light table evaluate it hitting cmd enter will evaluate the line of code your cursor is on but nothing else hitting cmd shift enter will evaluate the entire file most basic examples such as the canonical hello world print to the console but if you try this your results aren t immediately apparent there is however a teal box in the bottom right with some numbers in it this means there is new information in the console if you click that teal box or go to view console the console will appear from the bottom you will see that light table has provided as standard output labeled stdout whatever your program said to print allowing you to see the results of your program the console can be treated just like another tab if you so desire by right clicking the console and selecting open console tab inline evaluation viewing results in the console is sufficient for a lot of early work particularly if there are only one or two print commands in your code but it does have its limitations the most obvious one is that it doesn t actually tell you which block of code produced which result if you have one function that prints true or false and another that prints a number it s pretty easy to deduce which result came from which function but code isn t always that simple light table shows you results inline which helps enormously to understand what s going on you may have noticed that when you hit the evaluate command little blue boxes show up to the right of the code one next to each block of code you ll notice that some only get a check mark this is telling you that light table successfully evaluated a statement statements don t return anything so the check is just a simple way to tell you that the statement is a valid one the boxes next to expressions however will show you the results of that expression whether it s nothing none nil null true false a string or a number etc if there s an error in your code a red box will appear with a stack trace telling you what sort of error prevented that block of code from working evaluating with python to let light table know your code is in python save the file with a py extension or use the command pane to find editor set current editor syntax and choose python from the list once a file s syntax is set to python light table will use the python interpreter to evaluate your code seeing inline results with python is very simple after evaluating a line or an entire file light table will connect to a python process and display your results inline evaluating with javascript to let light table know which languages you re using save the files with html css or js extensions or use the command pane to find editor set current editor syntax and choose html css or javascript from the list once each file s syntax is set to its respective language light table will know how to evaluate your code when you evaluate a javascript file light table will usually ask you to connect to a client you can choose to connect to a browser if you want to inject your javascript into a webpage or you can connect to the light table ui if your javascript is a stand alone program and only needs to be evaluated in a local context evaluating html will open a browser tab if there isn t one available already or refresh the browser tab it s connected to evaluating css similar to javascript will prompt you to choose a client and inject that css into a browser page evaluating with clojure to let light table know your code is in clojure save the file with a clj extension or use the command pane to find editor set current editor syntax and choose clojure from the list once a file s syntax is set to clojure light table will use the clojure client to evaluate your code seeing inline results with clojure is very simple after evaluating a line or an entire file light table will connect to a clojure process and display your results inline user keymaps and behaviors while the menu the workspace tree and the command pane provide a way to do nearly everything in light table it is often inefficient to go hunting and clicking through them to get what you want light table comes with some common key bindings already in place cmd o to open cmd s to save cmd n for a new file to name a few but you may decide there are certain actions that you take frequently enough to want a key binding you can set these key bindings yourself by opening the command pane and typing keymap to bring up the option entitled settings user keymap the markup syntax the keymap file uses may not be familiar to you but the format is relatively easy to discern and light table has auto complete to help you find what you want inside the brackets you can see two sets of brackets named app and editor key bindings set under app will function in all of light table regardless of whether or not you have a file open some good examples would be creating a key bind to toggle the workspace tree or the console key bindings set under editor will function only when you have an editor window focused a good example of this would be unindenting by one tab length a convenient feature when dealing with python s use of whitespace to indicate run order behaviors are another aspect of light table that you may want to customize behaviors dictate settings like font size or color themes using the command pane to select settings user behaviors you can see a similar layout to the keymap file with the tags app and editor again changing behaviors lets you customize both the appearance and functionality of light table to your liking 2012 chris granger
|