chadtree icon indicating copy to clipboard operation
chadtree copied to clipboard

not able to set setting

Open Tloe opened this issue 4 years ago • 3 comments

I'm not able to set setting. In the configuration theres the failing dog example.. I like dogs too, but how about having an example that actually works?

I have this in my init.vim

let g:chadtree_settings = {
  \ 'options.version_control.enable': 'v:false'
  \ }

and get this:

Error detected while processing function CHADon_stderr:
line    1:                                                                                                                                                                                                                                                                                                            
Path:
key of: [ ignore: <class 'chadtree.fs.types.Ignored'>, keymap: typing.Mapping[str, typing.AbstractSet[str]], options: <class 'chadtree.settings.load._UserOptions'>, profiling: <class 'bool'>, theme: <class 'chadtree.settings.load._UserTheme'>, view: <class 'chadtree.settings.load._UserView'>, xdg: <class 'bool'> ]
->
options: <class 'chadtree.settings.load._UserOptions'>
->
key of: [ follow: <class 'bool'>, lang: typing.Optional[str], mimetypes: <class 'chadtree.settings.types.MimetypeOptions'>, page_increment: <class 'int'>, polling_rate: <class 'typing.SupportsFloat'>, session: <class 'bool'>, show_hidden: <class 'bool'>, version_control: <class 'chadtree.settings.types.VersionCtlOpts
'> ]
->
version_control: <class 'chadtree.settings.types.VersionCtlOpts'>
->
key of: [ enable: <class 'bool'> ]
->
enable: <class 'bool'>
->
<class 'bool'>
Actual:
'v:false'
Missing Keys: {}
Extra Keys:   {}
Args:         ()
Some options may hanve changed.
See help doc on Github under [docs/CONFIGURATION.md]
Press ENTER or type command to continue

Tloe avatar Feb 19 '21 22:02 Tloe

I managed to get it not to error, but with this setting it is still showing .gitignore which is a hidden file?

let g:chadtree_settings = {
  \ 'options.version_control.enable': v:false,
  \ 'options.show_hidden': v:false
  \ }

Tloe avatar Feb 20 '21 11:02 Tloe

This seems to work for me

    let g:chadtree_settings = {
        \ 'ignore.name_glob': ['.*'],
        \ 'options.version_control.enable': v:false,
        \ 'options.show_hidden': v:false
        \ }

However, it only works if I run :CHADopen as soon as I start vim. Apparently changing the working directory, or even opening a file, resets the options settings. I even tried to set options.follow to false, but it falls into the same problem. As soon as I start editing a file and toggle Chadtree it resets chadtree_settings.options.* completely

afonsocarlos avatar Feb 26 '21 16:02 afonsocarlos

I even tried to set options.follow to false, but it falls into the same problem. As soon as I start editing a file and toggle Chadtree it resets chadtree_settings.options.* completely

I have the same problem here. I can't stop ChadTree to follow the file. It is sometimes annoying and I would prefer use the "J" instead.

Here is my config :

  " ChadTree {
    map ,ex <ESC>:CHADopen<CR>
    let g:chadtree_settings = {
        \ 'options.follow': v:false,
        \ }
  " }

Is there anything I am doing wrong ?

eInyzant avatar Oct 24 '23 07:10 eInyzant