diff options
author | Cole Helbling | 2021-11-10 01:06:40 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2022-02-17 05:02:42 +0000 |
commit | a1207fd7683c2e038df923704bb5790c6cdaefea (patch) | |
tree | acb4c8c72bc9d7083765c51fe0af5102e284f7f9 /helix-view/src | |
parent | d11b6521399f41cb4c0b75ebaa5770972f550ebb (diff) |
helix-term/commands: display buffer id in picker
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/lib.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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; } |