Sha256: 831f750ad1f607369057b72fb80560f93243ead845e5e5b52cf0a20d0b1d7744
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
When /^I undo$/ do Redcar::Top::UndoCommand.new.run end When /^I redo$/ do Redcar::Top::RedoCommand.new.run end When /^I select from (\d+) to (\d+)$/ do |start_offset, end_offset| doc = Redcar.app.focussed_window.focussed_notebook.focussed_tab.edit_view.document doc.set_selection_range((start_offset.to_i)..(end_offset.to_i)) end When /^I copy text$/ do Redcar::Top::CopyCommand.new.run end When /^I cut text$/ do Redcar::Top::CutCommand.new.run end When /^I paste text$/ do Redcar::Top::PasteCommand.new.run end When /^I move the cursor to (\d+)$/ do |offset| doc = Redcar.app.focussed_window.focussed_notebook.focussed_tab.edit_view.document doc.cursor_offset = offset.to_i end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
redcar-0.3.2dev | plugins/edit_view/features/step_definitions/editing_steps.rb |