def choose_file_and_view glob=nil, startdir="."
    glob ||= "**/*.rb"
    str = choose_file  glob, :title => "Select a file", 
      :directory => startdir,
      :help_text => "Enter pattern, use UP DOWN to traverse, Backspace to delete, ENTER to select. Esc-Esc to quit"
    if str and str != ""
      code_browse str
    end
  end
def choose_file_and_view glob=nil, startdir="."
    glob ||= "**/*.rb"
    str = choose_file  glob, :title => "Select a file", 
      :directory => startdir,
      :help_text => "Enter pattern, use UP DOWN to traverse, Backspace to delete, ENTER to select. Esc-Esc to quit"
    if str and str != ""
      code_browse str
    end
  end
this should be available to view also.