weirongxu / coc-explorer

📁 Explorer for coc.nvim
MIT License
1.14k stars 45 forks source link

[Feature] I wanna go to the directory of folder, where we are in, source. #553

Closed Immortal-Sty closed 1 year ago

Immortal-Sty commented 1 year ago

我去,才发现你也是中国人。我干脆用中文说吧,我英语太菜……

我想按 b 就返回上级目录,或者你给 explorer 里面加上 ..也行。

下面就不用看了,是我写的英文……

**Describe the solution you'd like**
Folder A is in folder B, and I'm in folder A. Now, I wanna go to folder B, so I press the `b`(back) and it goes.

**Describe alternatives you've considered**
Or you can add the `..` in explorer. Then, we can move the cursor to here and press `l` or `<CR>` to go.
weirongxu commented 1 year ago

用 coc-settings.json 配置自定义 key mappings

{
  "explorer.keyMappings.global": {
    "b": "gotoParent"
  }
}
weirongxu commented 1 year ago

用 backspace 按键也可以