From a1207fd7683c2e038df923704bb5790c6cdaefea Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Tue, 9 Nov 2021 17:06:40 -0800 Subject: helix-term/commands: display buffer id in picker --- helix-view/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'helix-view') diff --git a/helix-view/src/lib.rs b/helix-view/src/lib.rs index a56c914d..e0964e1c 100644 --- a/helix-view/src/lib.rs +++ b/helix-view/src/lib.rs @@ -26,6 +26,12 @@ impl Default for DocumentId { } } +impl std::fmt::Display for DocumentId { + fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { + f.write_fmt(format_args!("{}", self.0)) + } +} + slotmap::new_key_type! { pub struct ViewId; } -- cgit v1.2.3-70-g09d2