Class: VER::Executor::ExTheme

Inherits:
Entry show all
Defined in:
lib/ver/executor/theme.rb

Constant Summary

Constants inherited from VER::Entry

VER::Entry::BACKWARD_WORD, VER::Entry::FORWARD_WORD

Instance Attribute Summary

Attributes inherited from Entry

#callback, #caller, #parent, #tabcount, #tree, #update_on_change, #ybar

Attributes included from Keymapped

#major_mode

Instance Method Summary collapse

Methods inherited from Entry

#accept_line, #after_update, #cancel, #completed=, #completion, #destroy, #initialize, #next_line, #on_delete, #on_insert, #prev_line, #speed_selection, #subset, #sync_value_with_tree_selection, #tree_selection_value, #update_items, #update_only

Methods included from Keymapped

#minor_mode, #minor_mode?

Methods inherited from VER::Entry

#accept_line, #beginning_of_history, #cursor=, #delete, #delete_next_char, #delete_next_word, #delete_prev_char, #delete_prev_word, #deleting, #end_of_history, #end_of_line, #error, #event, #events, #insert, #insert_selection, #insert_string, #insert_tab, #kill, #kill_end_of_line, #killing, #message, #next_char, #next_history, #next_word, #paste, #prev_char, #prev_word, #previous_history, #sel_end_of_line, #sel_next_char, #sel_next_word, #sel_prev_char, #sel_prev_word, #sel_start_of_line, #start_of_line, #style, #transpose_chars, #value=, #virtual_movement

Constructor Details

This class inherits a constructor from VER::Executor::Entry

Instance Method Details

#action(name) ⇒ Object



15
16
17
18
# File 'lib/ver/executor/theme.rb', line 15

def action(name)
  caller.load_theme(name)
  callback.destroy
end

#choices(name) ⇒ Object



11
12
13
# File 'lib/ver/executor/theme.rb', line 11

def choices(name)
  subset(name, @themes)
end

#setupObject



4
5
6
7
8
9
# File 'lib/ver/executor/theme.rb', line 4

def setup
  callback.update_on_change = true
  @themes = VER::Theme.list.map{|fullpath|
    File.basename(fullpath, File.extname(fullpath))
  }
end