add ga binding to go to last buffer

This commit is contained in:
Maxime Coste 2013-04-09 14:22:21 +02:00
parent 7b94925898
commit 43b5bd5260

View File

@ -87,6 +87,17 @@ void do_go(Context& context)
editor.select(buf.iterator_at_line_begin(buf.line_count() - 1), mode);
break;
}
case 'a':
{
auto& buffer_manager = BufferManager::instance();
auto it = buffer_manager.begin();
if (it->get() == &context.buffer() and ++it == buffer_manager.end())
break;
context.push_jump();
auto& client_manager = ClientManager::instance();
context.change_editor(client_manager.get_unused_window_for_buffer(**it));
break;
}
case 'f':
{
String filename = context.editor().main_selection().content();