Skip to content

Commit 7ff28fd

Browse files
committed
📝 updating the docs
1 parent f00f8a2 commit 7ff28fd

File tree

1 file changed

+43
-29
lines changed

1 file changed

+43
-29
lines changed

README.md

Lines changed: 43 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,39 @@ A bundle to make GDL available in [Sublime Text](http://www.sublimetext.com/).
88
# What is GDL?
99
GDL means 'Geometric Description Language'. [ArchiCAD](http://www.graphisoft.com/) uses it to define a library part.
1010

11-
Many ArchiCAD users are making their own library parts, sell them or even publish them for free on sites like [BIMComponents](https://bimcomponents.com/), while others might modify the provided ones. But they are all tied to the – unfortunately horrible – build-in object editor which is stuck in the 80's or so. It doesn't even have line numbers!
11+
Many ArchiCAD users are making their own library parts, sell them or even publish them for free on sites like [BIMComponents](https://bimcomponents.com/), while others just want to modify the provided ones. But they are all tied to the – unfortunately horrible – built-in object editor which is stuck in the 80's or so. It doesn't even have line numbers!
1212

13-
But the rescue is here! _(at least something like that)_
13+
But salvation is here!
1414
The purpose of this package is to give you the chance to comfortably write code in the best editor of the galaxy – [Sublime Text](https://www.sublimetext.com/).
1515

16-
This package provides **syntax highlighting** with a well aligned **color scheme** (so the syntax highlighting can take it's glorious place) and also **auto completion** (can be forced by pressing <kbd>ctrl</kbd> + <kbd>space</kbd>).
16+
This package provides the whole thing: from **syntax highlighting** (with a well aligned **color scheme**) to **auto completion**, **global goto**, **snippets**, and last but not least a **build system** for your scripts.
1717

1818
## Installation
1919

2020
### Using Sublime Package Control
21-
_recommended_
21+
:white_check_mark: _recommended_
2222
If you are using [Sublime Package Control](http://wbond.net/sublime_packages/package_control), you can easily install the bundle via the `Sublime Text -> Preferences > Package Control: Install Package` menu item.
2323

2424
### Using Git
25-
Alternatively you can install the bundle and keep up to date by cloning the repo directly into your `Packages` directory in the Sublime Text application settings area.
25+
:robot: Alternatively you can install the bundle and keep up to date by cloning the repo directly into your `Packages` directory in the Sublime Text application settings area.
2626

2727
Go to your Sublime Text `Packages` directory and clone the repository using the command below:
2828
`git clone https://github.com/runxel/GDL-sublime "GDL"`
2929

3030
### Download Manually
31-
_not recommended – you won't get updates!_
31+
:arrow_down: _not recommended – you won't get updates!_ :rotating_light:
3232
- Download the files using the GitHub .zip download option
3333
- Unzip the files and rename the folder to 'GDL'
34-
- Copy the folder to your Sublime Text `Packages` directory e.g.
35-
- Windows `C:\Users\yourname\AppData\Roaming\Sublime Text 2\Packages\GDL`
36-
- OS X: `~/Library/Application Support/Sublime Text 2/Packages/GDL`
34+
- Copy the folder to your Sublime Text `Packages` directory i.e.
35+
- Windows `C:\Users\<yourname>\AppData\Roaming\Sublime Text 3\Packages\GDL`
36+
- OS X: `~/Library/Application Support/Sublime Text 3/Packages/GDL`
3737

3838
## Usage
39-
From now on you can select `GDL` as the current language in the bottom right corner of ST and enjoy all the benefits ST brings.
40-
But wait! There's more!
41-
You should activate a color scheme (meaning proper highlighting) by modifying the syntax specific preferences file.
42-
First set the syntax to `GDL` for the current file, then proceed to `Preferences > Settings – Syntax Specific`(or `Preferences > Settings – More > Syntax Specific – User` if youre using an older version of Sublime Text).
39+
From now on you can select `GDL` as the current language in the bottom right corner of ST and enjoy all the benefits. For files with the `.gdl` extension it will be automatically active.
40+
For the coloring (meaning the proper highlighting) there are two choices. By default a light color scheme will be applied.
41+
I personly like the dark coloring more providing fatigue-proof coding. To change the use of a color scheme go to `Preferences > Package Settings > GDL > Settings`.
4342

44-
There are 2 different color schemes at choice: A dark and a light one. _I muchly recommend the dark one for fatigue-proof coding. If you're more the traditional architect the light scheme might be your choice ;)_
45-
46-
Copy _one_ of these into the new file and save:
43+
Copy _one_ of these into the file on the right and save:
4744

4845
#### **Dark:**
4946
```json
@@ -61,28 +58,45 @@ Copy _one_ of these into the new file and save:
6158
![light color scheme](https://i.imgur.com/OQx2IF2.png)
6259

6360
#### Don't like the theme?
64-
Don't worry. Go to the [ththeme-editor](http://tmtheme-editor.herokuapp.com/#!/editor/theme/GDL%20dark) and select one of the two themes as start and make one which satisfies you! (Note that the theme-editor of course has no preview for gdl code, so it's just direct scope color editing.)
65-
_See the [Wiki](https://github.com/runxel/GDL-sublime/wiki) for a list with the scopes so you can refine the scheme to suit your needs._
66-
Of course you could also edit the `.thTheme` files directly. Remember to copy and rename the provided one. Otherwise an update would overwrite your changes.
61+
You can edit the `.sublime-color-scheme` files directly. But remember to copy and rename the provided one. Otherwise an update would overwrite your changes.
6762

68-
### Auto completion + Snippets
69-
You may have to force the auto completion via <kbd>ctrl</kbd> + <kbd>space</kbd>.
70-
I have included some sample snippets. Try it out by typing in: `comline` and then press <kbd>TAB ↹</kbd>.
63+
### GoTo, Auto completion, Snippets
64+
The "Goto" feature of Sublime Text is pretty powerful. To gain full access you must use [Sublime projects](#workflow). If you e.g. quickly want to got to a subroutine place your cursor into the name and press <kbd>F12</kbd>. You will then jump directly to the definition.
65+
Auto completion takes place automatically, if you're typing. You can force auto completion via <kbd>ctrl</kbd> + <kbd>space</kbd>.
66+
I have included some example snippets. Try it out by typing in: `comline` and then press <kbd>TAB ↹</kbd>.
7167
Voilá! There's a divider.
7268
`! ---------------------------------------------------------------------- !`
7369

74-
I hardly encourage you to either modify the snippets, so they will suit your needs; or to make new ones.
70+
I hardly encourage you to modify and extend the snippets, so they will suit your needs.
7571
You will find all the shipped snippets in the `Snippets` folder.
7672

77-
## Further usage
78-
This Sublime Text package got accompanied by [GDLnucleus](http://www.opengdl.org/Default.aspx?tabid=9748) (_Not freeware_). GDLnucleus is a assistant program which enables you to send your changes live to ArchiCAD from Sublime Text, instead of relying on copy+paste.
79-
It can be understood as a SublimeText-project handler integrated with a link to the LP\_XMLConverter, which comes with ArchiCAD. See the page for more details.
80-
(_Please note: I did not made GDLnucleus._)
73+
## Workflow
74+
With the advent of ARCHICAD 23 we don't longer need third-party apps like [GDLnucleus](http://www.opengdl.org/Default.aspx?tabid=9748) for a Sublime Text driven workflow. The **LP_XMLConverter**, which is part of every Archicad installation, can now convert `.gsm` directly into subsequent `.gdl` scripts and vice-versa. This means an end to the abundant copy & pasting orgy of the past.
75+
76+
To use this feature you first need to set the path to where your ARCHICAD is installed. Open the package settings again, with the pencil icon on the left you can copy the respective item from the left to the right pane. Change the path accordingly.
77+
Afterwards drag and drop a folder with your 'gsm' (I recommend different folders for different gsm's) into Sublime Text and then create a Sublime project via `Project > Save Project sAs…`. Other benefits are a better working 'goto', 'auto completion', and the possibility to fast switch between different coding sessions on various gsm's.
78+
You can now use the the two conversion options in `Tools > GDL`. For a quick access both items are reachable via a right mouse click on the editor pane and key bindings on each.
79+
The default for `Convert to script (gsm ⯈ hsf/gdl)` is <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>H</kbd>. `Build GSM from HSF (hsf/gdl ⯈ gsm)` has <kbd>ctrl</kbd>+<kbd>shift</kbd>+<kbd>alt</kbd>+<kbd>G</kbd>. Of course this can be adjusted to your taste.
80+
![cmd args](https://i.imgur.com/HDiunZe.png)
81+
If you need to provide additional arguments for the LP_XMLConverter, you can do so by `Project > Edit Project`, then copy this into the open file:
82+
```json
83+
"cmdargs":
84+
{
85+
"to-hsf": "<args>",
86+
"to-gsm": "<args>"
87+
}
88+
```
89+
where `<args>` is to be replaced. If you don't need it, you can leave it empty. To check the possible args you can run the LP_XMLConverter with the `-?` argument to get help.
90+
91+
&nbsp;&nbsp;&nbsp;&nbsp;
8192

8293
## Getting Started With Sublime Text
8394
New to Sublime? Then I can recommend this excellent and free video tutorial by nettuts: [Perfect Workflow in Sublime Text](http://net.tutsplus.com/articles/news/perfect-workflow-in-sublime-text-free-course/).
8495

85-
## Support me
86-
If you want to show your appreciation you can get me a :beers:!
96+
## Support
97+
Does this plugin help you in your daily work, or just want to say thanks?
98+
Please consider donating to sustain working on this plugin.
99+
100+
[![ko-fi](https://www.ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Y8Y5VOOM)
87101

88102
[![Beerpay](https://beerpay.io/runxel/GDL-sublime/badge.svg?style=beer-square)](https://beerpay.io/runxel/GDL-sublime)

0 commit comments

Comments
 (0)