From 41b07486ad935ad820dd4ba210457a03c95e1145 Mon Sep 17 00:00:00 2001 From: Wojciech Kępka Date: Fri, 18 Jun 2021 08:19:34 +0200 Subject: Fix expansion of `~` (#284) * Fix expansion of `~`, dont use directory relative to cwd. * Add `expand_tilde` * Bring back `canonicalize_path`, use `expand_tilde` to `normalize` * Make `:open ~` completion work * Fix clippy * Fold home dir into tilde in Document `realitve_path`--- helix-core/src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'helix-core') diff --git a/helix-core/src/lib.rs b/helix-core/src/lib.rs index b11faeab..03741719 100644 --- a/helix-core/src/lib.rs +++ b/helix-core/src/lib.rs @@ -89,6 +89,8 @@ pub fn cache_dir() -> std::path::PathBuf { path } +pub use etcetera::home_dir; + use etcetera::base_strategy::{choose_base_strategy, BaseStrategy}; pub use ropey::{Rope, RopeSlice}; -- cgit v1.2.3-70-g09d2