McGivrer's Home

life of french web solution architect

  • Sublime Text 2 : the "killer" source editor !

    • 20 Apr 2012
    • 2 Responses
    •  views
    • editor osx ubuntu windows
    • Edit
    • Delete
    • Tags
    • Autopost

    Walking the web, i've found the ultimate text editor.

    A multi-platform editor

    It's like TextMate on OS-X and bring a lots of fantastic feature like a "distraction free" mode, displaying your current text in a fullscreen format without anything else like menubar or status bar. Only a big black screen with synthaxe highlighted text.

    Ok, for coder it's not heaven, but with all the snippets, plugins, console, templates, and more (Column edtion mode, etc...)

    Sublime Text in its second edition is not only a good editor but also a beautiful one: see screen captures bellow on Linux (Ubuntu 11.10):

    Capture_du_2012-04-20_011516
    figure 1 : The text editor with all features activated:
     project explorer, console, and mini-map mode.
    Capture_du_2012-04-20_012004
    figure 2 : Here is the Famous Distraction Free Mode
    for Hardcore developers :)

    This Very good "professional" text editor is quiet stable, during all my edition sessions: no bug, no crash!  

    Very good work, guy's !

    I also like the easy way to create plugin (complexe one can be implemented because of the Python embbeded engine !).

    Create a plugin from scratch

    You just have to create a new Directory in the "~/.config/sublime-text-2/Packages/" named with your new extension name to create.

    The create a new *.py file script with the name to be used in the configuration file (see later). For exemple "open_google". just copy and paste the following peace of code bellow :

    import sublime, sublime_plugin, webbrowser
    
    #
    # Open the default browser to seach for the selected text in Google 
    # (or any other search engine, through Default.sublie-keymap parameters)
    # sample:
    # { "keys": ["ctrl+alt+g"] , 
    #   "command": "open_browser" , 
    #   "args": {"url" : "http://www.google.fr/#hl=fr&output=search&sclient=psy-ab&q={search}&oq={search}"}
    #
    # where *search* is the selected string to serach for.
    #
    class OpenBrowserCommand(sublime_plugin.TextCommand):
    
            def run(self, edit, url):
                    selection = ""
                    for region in self.view.sel():
                            selection += self.view.substr(region)
                    webbrowser.open_new_tab(url.format(search=selection))

    , and update the  keybinding user (CTRL+P and select "Default (Windows).sublime-keymap" file and paste the following lines:

    [
         {
              "keys": ["ctrl+alt+g"] ,
                  "command": "open_browser" ,
                  "args": {"url" : "http://www.google.fr/#hl=fr&output=search&sclient=psy-ab&q={search}&oq={search}"}
          }
    ]

    Save the files and try to select some text in any sublime editor window, and then press a magic [CTRL]+[ALT]+[G]...

    Your default Web browser would open a new tab and display result of the google search with the selected text.

    Have fun !

     

    • Tweet
  • Pixlr.com ! online Image editor

    • 16 Jun 2010
    • 0 Responses
    •  views
    • app editor image online photo web
    • Edit
    • Delete
    • Tags
    • Autopost
    What I have just discover on the web is one of the most stunning WebApp I have ever seen before:

    A photoshop like online image/photo editor !

    Capture1

    Illustration 1 - Pixlr.com, the online Image/photo editor

    This web app is very impressive and very usable !

    Please, make a test on http://www.pixlr.com/

    Woaw.

    • Tweet
  • RedCar, it's not a red car !

    • 7 Mar 2010
    • 0 Responses
    •  views
    • code editor hobo java linux multiplatform rails tools windows
    • Edit
    • Delete
    • Tags
    • Autopost
    RedCar is a brand new programmer's editor ruby oriented, and ruby developed.
    And on of the main feature of this new text editor, it's to be JRuby compatible natively !  A good news for the multiplatform world.

    Screenshot-redcar

    to be tested to help dev team to improve this cool programmer's tool.

    Is it possible to optimize such editor for Rails and Hobo ?

    McG.
    • Tweet
  • About

    Java/J2EE Expert
    Technical Manager
    Web Standard evangelizer

    120786 Views
  • Archive

    • 2012 (12)
      • May (1)
      • April (7)
      • January (4)
    • 2011 (53)
      • December (5)
      • November (1)
      • September (4)
      • August (4)
      • July (5)
      • June (2)
      • May (11)
      • April (11)
      • March (5)
      • February (3)
      • January (2)
    • 2010 (51)
      • December (2)
      • November (2)
      • October (1)
      • September (3)
      • August (8)
      • July (4)
      • June (15)
      • May (3)
      • April (2)
      • March (5)
      • February (5)
      • January (1)
    • 2009 (29)
      • December (1)
      • November (5)
      • October (6)
      • August (1)
      • July (4)
      • June (2)
      • May (1)
      • April (4)
      • March (2)
      • February (1)
      • January (2)
    • 2008 (39)
      • December (1)
      • November (5)
      • October (8)
      • September (8)
      • August (8)
      • July (9)

    Get Updates

    Follow this Space »
    You're following this Space (Edit)
    You're a contributor here (Edit)
    This is your Space (Edit)
    Follow by email »
    Get the latest updates in your email box automatically.
    Loading...
    Subscribe via RSS
    FlickrPicasametaweblog