weirongxu/coc-explorer

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

Closed this issue · 2 comments

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

我想按 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.

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

{
  "explorer.keyMappings.global": {
    "b": "gotoParent"
  }
}

用 backspace 按键也可以