nexedit 0.2.2

A vim-like text editor, with simple shortcuts.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::fmt;
use std::path::PathBuf;

pub struct DisplayablePath(pub PathBuf);

impl fmt::Display for DisplayablePath {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        let DisplayablePath(path) = self;
        write!(f, "{}", path.to_string_lossy())
    }
}