Method: Console.custom_history
- Defined in:
- lib/xiki/console.rb
.custom_history ⇒ Object
489 490 491 492 493 494 495 496 497 498 499 500 501 502 |
# File 'lib/xiki/console.rb', line 489 def self.custom_history dir = View.dir history = Console.commands history.uniq! unless Keys.prefix_u history = history.join("\n").gsub(/^/, '% ') View.create :u if ! View.list_names.member?("*shell history") View.to_buffer "*shell history" View.kill_all Notes.mode View.insert "#{history}\n" View.to_highest Tree.search end |