lib/textbringer/commands/files.rb in textbringer-1.0.1 vs lib/textbringer/commands/files.rb in textbringer-1.0.2

- old
+ new

@@ -122,7 +122,13 @@ |dir_name = read_file_name("Change directory: ", default: Buffer.current.file_name && File.dirname(Buffer.current.file_name))| Dir.chdir(dir_name) end + + define_command(:find_alternate_file, doc: "Find an alternate file.") do + |file_name = read_file_name("Find alternate file: ", + default: Buffer.current.file_name)| + find_file(file_name) + end end end