weirongxu / coc-explorer

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

[BUG] Colors of files change when moving through the file list in a folder #506

Closed cpfaff closed 2 years ago

cpfaff commented 2 years ago

Describe the bug

Colors of files change when focus is on them and changes back afterwards.

Result from CocInfo

## versions

vim version: NVIM v0.6.1
node version: v17.3.0
coc.nvim version: 0.0.80-452671ce30
coc.nvim directory: /home/user/.vim/plugged/coc.nvim
term: rxvt-unicode-256color
platform: linux

## Log of coc.nvim

2022-01-28T11:34:47.107 INFO (pid:780821) [plugin] - coc.nvim initialized with node: v17.3.0 after 725ms
2022-01-28T11:34:47.110 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:47.110 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:47.544 INFO (pid:780821) [attach] - receive notification: runCommand [ 'explorer' ]
2022-01-28T11:34:47.562 INFO (pid:780821) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_coc_helper_1',
  'BufDelete',
  9
]
2022-01-28T11:34:47.563 INFO (pid:780821) [attach] - receive notification: runCommand [
  'coc-helper.internal.didVimEvent_m1_v0_13_0_explorer_2',
  'BufDelete',
  9
]
2022-01-28T11:34:47.621 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:47.868 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:48.009 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:48.184 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:48.357 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:48.532 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:48.834 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:48.983 INFO (pid:780821) [attach] - Request action: doKeymap [ 'explorer-key-n-o' ]
2022-01-28T11:34:49.017 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:49.017 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:49.421 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:49.694 INFO (pid:780821) [attach] - Request action: doKeymap [ 'explorer-key-n-o' ]
2022-01-28T11:34:49.704 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:49.706 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:50.109 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:50.571 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:50.770 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:50.933 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:51.096 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:51.271 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:51.760 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:52.046 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:52.233 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:52.396 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:52.571 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:52.733 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:34:52.908 INFO (pid:780821) [attach] - receive notification: highlight []
2022-01-28T11:36:06.267 INFO (pid:780821) [attach] - receive notification: showInfo []

Steps to reproduce Steps to reproduce the behavior:

  1. execute nvim
  2. :CocExplorer ...
  3. Open a folder whith files
  4. Some files are shown as gray
  5. When moving over the files they are shown as white
  6. They turn back gray (some of them)

Expected behavior

Show files in same color if they are not differen in any way. When moving over the files with the selection do not change the color back and forth.

Screenshots 2022-01-28-113806_317x223_scrot 2022-01-28-114020_304x196_scrot

Additional context None

weirongxu commented 2 years ago

Have you updated to the latest version? Should have fixed it today

cpfaff commented 2 years ago

Thanks. I just did that and tested. The color problem seems to fixed. However there is still something going on with the file names when moving over them. Some turn from normal shape to italic shape and back. Maybe it is related.

cpfaff commented 2 years ago

2022-01-28-162202_284x188_scrot 2022-01-28-162300_291x162_scrot

cpfaff commented 2 years ago

You can see the file name "AddTask.jsx" shows the symptom.