Commits

Herbert Breunung committed 1ca58d0

merge splitter enhancements from sp1

Comments (0)

Files changed (3)

lib/Kephra/API.pm

 sub editor          { Kephra::API::Docs::active_editor() }
 sub docbar          { Kephra::App::Part::Editor::active_docbar() }
 sub document        { Kephra::API::Docs::active_doc() }
-sub all_documents   { Kephra::API::Docs::all_doc() }
+sub all_documents   { Kephra::API::Docs::all() }
 sub do_with_all_documents { }
 
 sub focus           { Kephra::App::Focus::set(@_) }

lib/Kephra/API/Docs.pm

 		return $document{$ed} if $document{$ed}->file_path eq $file_path;
 	}
 }
-sub all_doc { values %document }
+sub all { values %document }
 
 sub dump_all_ed { print "$_ + \n" for keys %document }
 

lib/Kephra/File.pm

 
 		# raise tab if doc is alread open
 		Kephra::App::Part::Editor::raise_document($file), next
-		  if Kephra::DocumentStash::file_loaded($file);
+		  if Kephra::API::Docs::file_loaded($file);
 
 		my $doc = Kephra::App::Part::Editor::create_document($file);
 		next unless ref $doc eq 'Kephra::Document';