weirongxu / coc-explorer

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

[BUG?] Can I exclude the symbol window when opening files? #559

Closed tubzby closed 1 year ago

tubzby commented 1 year ago

Describe the bug I'm using Vista with "Vista coc" to view the outline symbol of the current buffer, each time when I want to view a new file, it will ask me to select which window to show the content, normally 'A' indicates current buffer, 'B' indicates the outline symbol window.

So, I'm checking out if there is a way to exclude a specific window while opening a new file. In my case, exclude the symbol window.

Result from CocInfo

## versions

vim version: NVIM v0.8.1
node version: v19.2.0
coc.nvim version: 0.0.82-b11a93ba 2022-12-25 15:19:13 +0800
coc.nvim directory: /Users/liuzhiping/.vim/plugged/coc.nvim
term: iTerm.app
platform: darwin

## Log of coc.nvim

2023-01-15T20:15:57.361 INFO (pid:33907) [attach] - receive notification: runCommand [ 'explorer', '--no-focus' ]
2023-01-15T20:15:57.363 WARN (pid:33907) [attach] - Plugin not ready on request "documentSymbols" []
2023-01-15T20:15:57.462 WARN (pid:33907) [workspace] - Extension "coc-lists" registered synchronized autocmd "VimLeavePre", which could be slow.
2023-01-15T20:15:57.515 INFO (pid:33907) [plugin] - coc.nvim initialized with node: v19.2.0 after 233
2023-01-15T20:15:57.516 INFO (pid:33907) [services] - LanguageClient Rust Analyzer Language Server state change: stopped => starting
2023-01-15T20:15:57.525 INFO (pid:33907) [language-client-index] - Language server "rust-analyzer" started with 33912
2023-01-15T20:15:57.534 INFO (pid:33907) [services] - LanguageClient Rust Analyzer Language Server state change: starting => running
2023-01-15T20:15:57.545 INFO (pid:33907) [services] - service rust-analyzer started
2023-01-15T20:15:57.716 INFO (pid:33907) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_15_2_coc_helper_1',
  'BufDelete',
  2
]
2023-01-15T20:15:57.717 INFO (pid:33907) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_15_2_explorer_2',
  'BufDelete',
  2
]
2023-01-15T20:15:57.763 INFO (pid:33907) [attach] - Request action: documentSymbols []
2023-01-15T20:15:57.809 INFO (pid:33907) [attach] - Request action: documentSymbols []
2023-01-15T20:15:58.141 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:15:59.598 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:16:07.877 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:16:08.475 INFO (pid:33907) [attach] - Request action: documentSymbols []
2023-01-15T20:16:08.606 INFO (pid:33907) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_15_2_coc_helper_1',
  'BufDelete',
  3
]
2023-01-15T20:16:08.607 INFO (pid:33907) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_15_2_explorer_2',
  'BufDelete',
  3
]
2023-01-15T20:16:09.000 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:16:09.089 INFO (pid:33907) [attach] - Request action: documentSymbols []
2023-01-15T20:16:09.488 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:16:09.810 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:16:12.249 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:16:12.816 INFO (pid:33907) [attach] - Request action: doKeymap [ 'coc-explorer-key-n-[2-LeftMouse]' ]
2023-01-15T20:16:36.686 INFO (pid:33907) [attach] - Request action: doKeymap [ 'coc-explorer-key-n-[esc]' ]
2023-01-15T20:16:36.990 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:16:42.174 INFO (pid:33907) [attach] - Request action: documentSymbols []
2023-01-15T20:16:42.519 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:16:43.665 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:16:44.409 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:16:45.304 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:16:45.792 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:16:46.999 INFO (pid:33907) [attach] - Request action: doKeymap [ 'coc-explorer-key-n-[2-LeftMouse]' ]
2023-01-15T20:22:34.110 INFO (pid:33907) [attach] - Request action: doKeymap [ 'coc-explorer-key-n-[esc]' ]
2023-01-15T20:22:34.414 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:22:35.408 INFO (pid:33907) [attach] - Request action: documentSymbols []
2023-01-15T20:22:35.753 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:23:52.222 INFO (pid:33907) [attach] - receive notification: highlight []
2023-01-15T20:25:53.074 INFO (pid:33907) [attach] - receive notification: showInfo []

Steps to reproduce Steps to reproduce the behavior:

  1. execute nvim
  2. :CocExplorer ...
  3. Start Vista with Vista coc

Expected behavior

Exclude the symbol window while opening new files.

Screenshots

image

Additional context None

weirongxu commented 1 year ago

Fixed on v0.26.1

tubzby commented 1 year ago

Failed to update coc-explorer, I'm using node 19.2.0 on Mac.

image
tubzby commented 1 year ago

Please reopen this issue.

weirongxu commented 1 year ago

try again. Seems the npmmirror missing some packages. https://npmmirror.com/package/%40raidou%2Feslint-config-base

weirongxu commented 1 year ago

And I think you npm configuration has some problems because it cannot omit the dev dependencies.

tubzby commented 1 year ago

Fixed, Seems I'm using an outdated npm mirror site.