Permalink
Switch branches/tags
Commits on Jan 20, 2012
  1. Support for %{} items outside %! function

    I thought %{} items were evaluated only when returned by the %!
    function, but this is not the case, so now if deep evaluation is enabled
    the plugin evaluates the %{} items, e.g.:
    set statusline=%f\ %{fugitive#statusline()}
    
    you can highlight '(master)' (it's a pretty dumb example, but whatever) with
    let g:smartusline_deep_eval = 1
    let g:smartusline_string_to_highlight = '(master)'
    committed Jan 20, 2012
  2. Better way to assign the new stl

    I used to escape the statusline, but I realized I can simply assign
    it with:
    
    let &l:stl = new_stl
    
    "l:" stands for local, which is exactly what I need.
    
    Also, this should fix #6
    committed Jan 20, 2012
Commits on Jan 14, 2012
  1. Choose default term colors according with t_Co

    This closes issue #1
    SmartusLine reads t_Co and chooses the best colors supported by the terminal
    committed Jan 14, 2012
Commits on Jan 11, 2012
  1. Merge branch 'eval-expression'

    Now shallow evaluation of the statusline is done by default
    and I also added a deep evaluation option to evaluate %{} items.
    
    Useful for complex statuslines.
    committed Jan 11, 2012
  2. Added InsertChange autocommand

    it is triggered when typing <Insert> while in Insert or Replace mode
    committed Jan 11, 2012
  3. New "deep evaluation" option

    committed Jan 11, 2012
  4. autism

    committed Jan 11, 2012
Commits on Jan 9, 2012
  1. Added autocmd group for autocommands

    Yes, it's as boring as it sounds
    committed Jan 9, 2012
  2. Use a parser instead of a shitty regex

    Kids, regex are bad, mmkay?
    But honestly, I don't know if this code makes sense, should I really
    evaluate all the %{} items?
    Probably just evaluating the first function is enough?
    I'm not sure! (But I wrote the parser because it was fun :)
    committed Jan 9, 2012
Commits on Jan 8, 2012
  1. Tweaked the regex

    it still fails on:
    %{Foobar(')}')}
    TODO FIXME
    committed Jan 8, 2012
  2. Support for %!Foobar() stl

    stl can contain function calls, I try to evaluate them,
    it's kind of hackish since I use regex to match functions, but
    it seems good enough
    committed Jan 8, 2012
Commits on Jan 7, 2012
  1. Bumping version number

    I need this to update the version uploaded on vim.org that is buggy
    committed Jan 7, 2012
  2. Added help file

    committed Jan 7, 2012
  3. Cosmetic changes

    Fixed indentation in smartusline.vim
    committed Jan 7, 2012
Commits on Jan 6, 2012
  1. removed debug print

    committed Jan 6, 2012
  2. more requirements

    committed Jan 6, 2012
  3. note about laststatus

    committed Jan 6, 2012
  4. meh

    committed Jan 6, 2012
  5. stupid markdown

    committed Jan 6, 2012
  6. better readme

    committed Jan 6, 2012
  7. first release!

    committed Jan 6, 2012
  8. first commit

    committed Jan 6, 2012