Home Download Buy Blog Forum Support

orgmode

orgmode

Postby theblacklion on Tue Mar 08, 2011 8:55 pm

Hi folks,

here's my shot on bringing Org-Mode (http://orgmode.org/) to Sublime Text 2. This project is still in very early development. Nobody knows what will come next :). This won't be a simple copycat of the original one. I want to "port" useful things in a way that works for Sublime Text 2. So there may also be things that aren't in the original version or just behave more or less differently.

You can grab the code here:
https://bitbucket.org/theblacklion/sublime_orgmode/src

Please read the README.org file. Therein you'll find infos on how to enable proper keyboard interaction and coloring the syntax elements.

I'm curious what you think about it...

Regards,
Oktay.
theblacklion
 
Posts: 67
Joined: Sat Feb 05, 2011 10:07 pm
Location: Hannover, Germany

Re: orgmode

Postby aroberge on Tue Mar 08, 2011 9:45 pm

I'm not familiar with orgmode but it does look very nice. And your plugin does works as advertised (in the readme.org).

I sent you a message on this board - you may want to check it.
aroberge
 
Posts: 21
Joined: Sat Feb 12, 2011 1:03 am

Re: orgmode

Postby aroberge on Tue Mar 08, 2011 10:15 pm

I've adapted your theme and found that links do not appear to be underlined - contrarily to what I would have assumed from:
Code: Select all
   <dict>
       <key>name</key>
       <string>orgmode link</string>
       <key>scope</key>
       <string>link.orgmode</string>
       <key>settings</key>
       <dict>
         <key>foreground</key>
         <string>#FB9A4B</string>
         <key>fontStyle</key>
         <string>underline</string>
      </dict>
   </dict>


I'm using a modified version of Twilight, on OSX.
aroberge
 
Posts: 21
Joined: Sat Feb 12, 2011 1:03 am

Re: orgmode

Postby theblacklion on Tue Mar 08, 2011 10:17 pm

aroberge wrote:I've adapted your theme and found that links do not appear to be underlined - contrarily to what I would have assumed from:
[…]
I'm using a modified version of Twilight, on OSX.


Yeah - it seems that Sublime doesn't support this yet :(. Or have you seen bold, italic or underline somewhere? I think, it's not in there yet..
theblacklion
 
Posts: 67
Joined: Sat Feb 05, 2011 10:07 pm
Location: Hannover, Germany

Re: orgmode

Postby aroberge on Tue Mar 08, 2011 10:27 pm

Yeah - it seems that Sublime doesn't support this yet :(. Or have you seen bold, italic or underline somewhere? I think, it's not in there yet..


I have not seen it done directly. The original SublimeLint plugin which I forked used the following hack (which I kept) to underline stuff:
Code: Select all
      # To underline a region, we use a "hack" specific to SublimeText
      # where we create a list of empty regions for each character
      # which we want to underline.  When drawing with
      # sublime.DRAW_EMPTY_AS_OVERWRITE, such empty regions
      # will appear as underlined.
      
      line = view.full_line(view.text_point(lineno, 0))
      position += line.begin()

      for i in xrange(length):
         underline.append(sublime.Region(position + i))

André
aroberge
 
Posts: 21
Joined: Sat Feb 12, 2011 1:03 am

Re: orgmode

Postby theblacklion on Tue Mar 08, 2011 11:46 pm

aroberge wrote:I have not seen it done directly. The original SublimeLint plugin which I forked used the following hack (which I kept) to underline stuff:


Hmm.. what a hack :D. I'ld rather avoid such things and wait for Jon to implement the correct functionality. Also the hack inflicts a huge overhead - using the syntax highlighting should be much faster. Just think about an org file which contains about 100 links. How many regions would that require to be managed? Short: Maaaaaaaaany :roll:
theblacklion
 
Posts: 67
Joined: Sat Feb 05, 2011 10:07 pm
Location: Hannover, Germany

Re: orgmode

Postby theblacklion on Sun Mar 13, 2011 1:08 pm

Does someone know an equivalent to "open something" (OSX) or "cmd /c start something" (Windows) for Linux?
theblacklion
 
Posts: 67
Joined: Sat Feb 05, 2011 10:07 pm
Location: Hannover, Germany

Re: orgmode

Postby theblacklion on Sun Mar 13, 2011 1:21 pm

Which type of external links would you like to use?

Currently I've support for:
* Jira
* FishEye
* Crucible
* mailto
* local file
* website

What else would you like to use (and is based on an URI)?
theblacklion
 
Posts: 67
Joined: Sat Feb 05, 2011 10:07 pm
Location: Hannover, Germany

Re: orgmode

Postby theblacklion on Sun Mar 13, 2011 8:57 pm

Just updated orgmode. New are:

- follow ups
- linked headlines
- reworked external link opener to support plugins
- added plugins for Jira, FishEye, Crucible, Email, local files
- added support for Windows in link opener

Have fun :).
theblacklion
 
Posts: 67
Joined: Sat Feb 05, 2011 10:07 pm
Location: Hannover, Germany

Re: orgmode

Postby aroberge on Tue Mar 15, 2011 3:18 am

theblacklion wrote:Which type of external links would you like to use?

Currently I've support for:
* Jira
* FishEye
* Crucible
* mailto
* local file
* website

What else would you like to use (and is based on an URI)?


How about being able to open, within sublimetext, a local file at a given line number? Perhaps something like
Code: Select all
[[sublimetext://full_path?line=nb]]
aroberge
 
Posts: 21
Joined: Sat Feb 12, 2011 1:03 am

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: Cacodaimon and 9 guests