I have created this bundle to make the editing of the next generation GPlates
rotation files (
*.grot) easier in TextMate. The bundle primarily does syntax highlighting using
TextMate grammars and allows for code completion
with snippets such as
mprs expanding to a full Moving Plate rotation sequence header. Currently, the implementation
is fully backwards-compatible so
that all applications relying on the old PLATES rotation file format can still read the files with the new format.
It should be possible to import the TextMate Grammar/bundle into the popular VS Code editor which uses the TextMate Grammar.
Contributions to this bundle are happily acccepted - also, you can add issues using the issue tracker.
For background on the new rotation file standard please see
https://wiki.paleoearthlabs.org/software/gplates/grot/start and the supplementary material to Qin et al. (2012) here where the initial version of the new
*.GROT file syntax is described.
The original Fossil repository is mirrored on SourceHut.
Download a zip file from the repository on my website or on SourceHut. Double-clicking will install it in
~/Library/Application\ Support/TextMate/Pristine Copy/Bundles. Once you open a
.grot File you should see
the syntax coloring, clicking the little cog at the bottom of the TextMate window will show the available functions/snippets.
Any edits you make to the files in the bundle will cause TextMate to create a new local copy of the bundle which
is stored in
Using the Terminal:
mkdir -p ~/Library/Application\ Support/TextMate/Pristine\ Copy\Bundles
cd ~/Library/Application\ Support/TextMate/Pristine\ Copy\Bundles
git clone git://email@example.com/~chhei/GPlates.tmbundle.git "GPlates.tmbundle"
Make sure your current theme as an
Test different themes in case of doubt.
X. Qin, R. D. Müller, J. Cannon, T. C. W. Landgrebe, C. Heine, R. J. Watson, and M. Turner. The GPlates Geological Information Model and Markup Language. Geoscientific Instrumentation, Methods and Data Systems, 1(2):111–134, 2012. doi:10.5194/gi-1-111-2012.
License (MIT) Copyright (c) 2013-2021 Christian Heine
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Keywords: GPlates; GROT; ROT; rotation file; plate tectonic modelling; plate model