@@ -217,6 +217,7 @@ impl Command {
217217 file_picker,
218218 buffer_picker,
219219 symbol_picker,
220+ last_picker,
220221 prepend_to_line,
221222 append_to_line,
222223 open_below,
@@ -2091,6 +2092,17 @@ fn symbol_picker(cx: &mut Context) {
20912092 )
20922093}
20932094
2095+fn last_picker(cx: &mut Context) {
2096+ // TODO: last picker does not seemed to work well with buffer_picker
2097+ cx.callback = Some(Box::new(|compositor: &mut Compositor| {
2098+ if let Some(picker) = compositor.last_picker.take() {
2099+ compositor.push(picker);
2100+ }
2101+ // XXX: figure out how to show error when no last picker lifetime
2102+ // cx.editor.set_error("no last picker".to_owned())
2103+ }));
2104+}
2105+
20942106// I inserts at the first nonwhitespace character of each line with a selection
20952107fn prepend_to_line(cx: &mut Context) {
20962108 goto_first_nonwhitespace(cx);
@@ -3749,6 +3761,8 @@ macro_rules! mode_info {
37493761mode_info! {
37503762 /// space mode
37513763 space_mode, SPACE_MODE,
3764+ /// resume last picker
3765+ "'" => last_picker,
37523766 /// file picker
37533767 "f" => file_picker,
37543768 /// buffer picker