From 719fb097fb3abba3444aeac428d9c83de7473a6d Mon Sep 17 00:00:00 2001 From: Sam Vente Date: Sat, 8 Jun 2024 23:02:17 +0200 Subject: [PATCH] wip --- helix-term/src/commands.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 7c215910f..8866ff55d 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -6148,6 +6148,19 @@ pub fn goto_mark(cx: &mut Context) { register_name )), }; + // let picker = Picker::new(items, (), |cx, meta, action| { + // cx.editor.switch(meta.id, action); + // }) + // .with_preview(|editor, meta| { + // let doc = &editor.documents.get(&meta.id)?; + // let &view_id = doc.selections().keys().next()?; + // let line = doc + // .selection(view_id) + // .primary() + // .cursor_line(doc.text().slice(..)); + // Some((meta.id.into(), Some((line, line)))) + // }); + // cx.push_layer(Box::new(overlaid(picker))); } fn register_mark(cx: &mut Context) {