add ga binding to go to last buffer
This commit is contained in:
parent
7b94925898
commit
43b5bd5260
11
src/main.cc
11
src/main.cc
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue
Block a user