Author Topic: Nspire-Lua environment for Gedit (Programming Editor for Gnome)  (Read 10165 times)

0 Members and 1 Guest are viewing this topic.

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Hi, =)

as Adriweb did here,

here is my Lua environment under Gedit : http://levak.free.fr/ftp/nspire/NspireLuaGedit/



I highly recommend this configuration/plugins for Gedit :

Display :
 - Check everything but not "Activate auto-line-return" (fisrt one)
Editor :
 - Tabulations : 4
 - Check "Activate auto-indentation"
Theme : Oblivion
Plugins :
 - (+) Advanced Find/Replace
 - (+) TabSwitch
 - (+) Simple Folding (since there is no auto-folding plugin in Gedit, this is the best one that exists)
 - (+) Project Manager
 - External Tools

External Tools is a greate plugin that lets you add some bash/sh scripts and add a shortcut to it.
For example, I use it with Ctrl+L to "make" Make3D, then, I can work faster for testing purposes.

Code: [Select]
#!/bin/bash
a="Make3D.lua"
b="./"
python ../../maketns/maketns.py ${a:0:${#a}-4}".tns" \
c=0 w \
$b"cube2.lua" \
$b"Utils.lua" \
$b"ScreenManager.lua" \
$b"Buttons.lua" \
$b"Menu.lua" \
$b"Request.lua" \
$b"Constants.lua" \
$b"Engine.lua" \
$b"Transform.lua" \
$b"ExportImport.lua" \
$b"Help.lua" \
$a \
wend cend\

I use also a modified version of maketns (by JayTe) that lets me make several cards (pages) or widgets per pages directly with a linux command prompt.
http://ti.bank.free.fr/forum/viewtopic.php?f=19&t=6885&start=110#p114309

Have fun !
« Last Edit: August 04, 2011, 03:15:35 pm by Levak »
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Nspire-Lua environment for Gedit (Programming Editor for Ubuntu)
« Reply #1 on: August 04, 2011, 10:10:19 am »
Quote
- Uncheck "add spaces instead of tabulations"

Tabs are not recommended for anything because they are inconsistent across text editors.

Either way thanks, nice job!

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Nspire-Lua environment for Gedit (Programming Editor for Ubuntu)
« Reply #2 on: August 04, 2011, 10:16:41 am »
Quote
- Uncheck "add spaces instead of tabulations"

Tabs are not recommended for anything because they are inconsistent across text editors.
I was, yes, in a way, not really sure about "highly recommend" this option, because it is a general troll... there is a 50/50 opinion for this subject, I have my reasons for using tabs, but it is not the subject of this thread.
Thanks for your intervention, I will remove this from the post, to prevent future discussion on this :p

Quote
Either way thanks, nice job!
Thanks, the pleasure is for me =)
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Nspire-Lua environment for Gedit (Programming Editor for Ubuntu)
« Reply #3 on: August 04, 2011, 11:26:08 am »
Thanks Levak, this will be useful for me, as I use gedit for all my programming :)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Nspire-Lua environment for Gedit (Programming Editor for Ubuntu)
« Reply #4 on: August 04, 2011, 02:41:54 pm »
Thanks! I always found the default gedit Lua plugin much too incomplete.




Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Nspire-Lua environment for Gedit (Programming Editor for Ubuntu)
« Reply #5 on: August 04, 2011, 03:06:51 pm »
Quote
Nspire-Lua environment for Gedit (Programming Editor for Ubuntu)

Also, Gedit is not Ubuntu-Only, it's "Gnome-Editor". I'm just installing it by the way.

Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Nspire-Lua environment for Gedit (Programming Editor for Ubuntu)
« Reply #6 on: August 04, 2011, 03:15:21 pm »
Quote
Nspire-Lua environment for Gedit (Programming Editor for Ubuntu)

Also, Gedit is not Ubuntu-Only, it's "Gnome-Editor". I'm just installing it by the way.

Oops, sorry, thanks for reporting this !
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Nspire-Lua environment for Gedit (Programming Editor for Gnome)
« Reply #7 on: August 04, 2011, 04:09:09 pm »
Another suggestion along the same lines: For Linux users who haven't been around a while, you can also add a little note that gedit is known as "Text Editor" in the newest versions of Gnome.

Looks great by the way!




Offline Levak

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +208/-39
    • View Profile
    • My website
Re: Nspire-Lua environment for Gedit (Programming Editor for Gnome)
« Reply #8 on: August 05, 2011, 12:12:40 am »
Found 2 intersting plugins :
 - gedit-autocomp
 - gedit-pair-char-autocomplete

The only little problem with the first one is that it pickups symbols that have already been typed =/

I've heard about a complete integration in gedit3 based on gtksourview, but I can't find it.
I do not get mad at people, I just want them to learn the way I learnt.
My website - TI-Planet - iNspired-Lua

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Nspire-Lua environment for Gedit (Programming Editor for Gnome)
« Reply #9 on: August 09, 2011, 10:25:00 am »
Thanks for you work in creating this!

This will certainly come in handy for Lua development!