weirongxu / coc-explorer Goto Github PK
View Code? Open in Web Editor NEW๐ Explorer for coc.nvim
License: MIT License
๐ Explorer for coc.nvim
License: MIT License
Would be nice a feature to execute the system default application for file or directory, something like nerdtree-execute does.
Hi @weirongxu
Suppose there are two files a.txt
and b.txt
in one directory and I want to rename a.txt
to b.txt
. After executing rename
action the extension throws an error
[coc.nvim] Error: Target file or directory /home/voldikss/dotfiles/README.md already exists
a.txt
to a.txt
), do nothingoverride?
and ...Hello! Thank you for such an awesome plugin! โค๏ธ
When using l
or Enter
key on directory everything works fine, folder opens as intented.
But when I try to open a file with l
or Enter
it shows the select window UI. Here's the screenshot:
How can I figure out what breaks the default l
and Enter
in coc-explorer
buffer? Thanks!
Would be nice to support VCS other than Git. I also use Subversion and Mercurial ๐
When opening a file into a VSplit with E the split will end up to the right, with the explorer in the middle if the explorer position is to the right.
I'm trying to open the explorer with the current buffer as root path.
I first tried the NerdTree wat with no luck on %
:
nnoremap ,, :CocCommand explorer --toggle --sources=buffer+,file+ --file-columns=git,selection,clip,indent,filename %<CR>
Now trying this, also with no luck:
function! ExploreCurrentBufferHead()
return ':CocCommand explorer --sources=buffer+,file+ --file-columns=git,selection,clip,indent,filename ' . expand('%:h')
endfunction
nnoremap <expr> ,, ExploreCurrentBufferHead() <CR>
Could you help me please?
coc-explorer/src/source/sources/buffer/buffer-source.ts
Lines 60 to 73 in f72e2d3
coc-explorer/src/source/sources/file/file-source.ts
Lines 99 to 155 in f72e2d3
FZF is a very popular utility.
Follow is a file manager with fzf. I's so good.
https://github.com/mananapr/cfiles
vim-webdevicons allow to subscribe default icons with customized. So coc-explorer can get these custom icons by filetype and use instead of nerdfont directely.
When mapping a key using keyMappings, is it possible to use the Control key?
Example coc-settings.json:
{
...
"explorer.keyMappings": {
"<ctrl v>": "toggleSelection"
},
...
}
Thanks!
{
"explorer.sources": [
{
"name": "buffer",
"expand": false
},
{
"name": "file",
"expand": true
}
],
"explorer.quitOnOpen": true, /////////////
"explorer.keyMappings": {
"<space>": "toggleSelection"
},
"explorer.icon.enableNerdfont": false
}
coc-explorer/mini_vimrc/mini.vim
ge
to open explorer:q<CR>
. And then nvim will show an error message "No write since last change for buffer [coc-explorer]..." and redirect me to a buffer which contains the following stuff.<113|+|113> <112|[BUFFER]|112>
<104|-|104> <102|[FILE]:|102> <103|coc-explorer|103> <105|/home/voldikss/code/coc-explorer|105>
<9|+|9> <9|autoload/|9><10| |10> <95| 4.1 kB|95> <97|19/11/01 16:58:16|97>
<9|+|9> <9|lib/|9><10| |10> <95| 4.1 kB|95> <97|19/11/01 17:07:37|97>
<7|M|7> <9|+|9> <9|mini_vimrc/|9><10| |10> <95| 4.1 kB|95> <97|19/11/01 23:21:47|97>
<9|+|9> <9|node_modules/|9><10| |10> <95| 20.5 kB|95> <97|19/11/01 17:07:37|97>
<9|+|9> <9|scripts/|9><10| |10> <95| 4.1 kB|95> <97|19/11/01 16:58:16|97>
<9|+|9> <9|src/|9><10| |10> <95| 4.1 kB|95> <97|19/11/01 16:58:16|97>
jest.config.js<10| |10> <95| 70 B|95> <97|19/11/01 16:58:16|97>
LICENSE<10| |10> <95| 1.07 kB|95> <97|19/11/01 16:58:16|97>
memos.json<10| |10> <95| 2 B|95> <97|19/11/01 23:17:23|97>
package.json<10| |10> <95| 11 kB|95> <97|19/11/01 16:58:16|97>
readme.md<10| |10> <95| 8.33 kB|95> <97|19/11/01 16:58:16|97>
tsconfig.json<10| |10> <95| 307 B|95> <97|19/11/01 16:58:16|97>
tsconfig.prod.json<10| |10> <95| 78 B|95> <97|19/11/01 16:58:16|97>
tslint.json<10| |10> <95| 344 B|95> <97|19/11/01 16:58:16|97>
webpack.config.js<10| |10> <95| 733 B|95> <97|19/11/01 16:58:16|97>
yarn.lock<10| |10> <95| 233 kB|95> <97|19/11/01 16:58:16|97>
hello, does coc-explorer support show a list of workspace that current opened?
New format for command and coc-settings.json
--file-columns=git:selection:clip:diagnosticError:indent:icon:filename;fullpath;size;modified;readonly
{
"columns": [
"git",
"selection",
"clip",
"diagnosticError",
"indent",
"icon",
"filename",
["fullpath"],
["size"],
["modified"],
["readonly"],
]
}
In Nerd_tree you can configure it to toggle it after opening a file.
https://github.com/scrooloose/nerdtree/blob/master/doc/NERDTree.txt#L993
If the explorer is already open doing a ":CocCommand explorer" gives the following error:
[coc.nvim] Error: request error nvim_eval - Vim:E121: Undefined variable: object
Previous versions simply switched back to the explorer window again.
NVIM v0.4.2
coc-explorer 0.1.1
There is a large amount of white space added after the filename. I'm assuming it's there for a reason but it would be great to be able to turn it off so that columns can be added after the filename. I had a look but couldn't figure out where it is coming from.
This is an example what I'd like to have:
I have a very hacky fix here if more clarification is needed:
When too many files in directory, I means, 21k files in same directiry
so I think there must has a recursive call to list file?
hidden file such as .vim folder or .bash_profile
When I was thinking about the difference between tab and buffer, I saw this question on stackoverflow: Why do Vim experts prefer buffers over tabs?
Someone said
"Vim experts" don't prefer buffers over tabs: they use buffers as the file proxies they are and tab pages as the workspaces they are
I love this idea. Because of this, I really need a feature that manages buffers of different tabs separately. So far, I only found that bufexplorer can do this.
I really appreciate this extension, could you add a feature like this?
When I run something like :CocCommand explorer --toggle
, the --toggle
option is parsed into a directory rather than an option.
The solution is simple though. Removing the unnecessary if statement below should help.
coc-explorer/src/parse-args.ts
Line 66 in 22d0c1a
Icons are not showing up since the last update. I even tried to install the full nerd fonts package with no luck.
I dont why highlight dosen
t work for single file (only single file can`t be highlighted)
Firstly this is such an amazing plugin ๐ thanks for building it ๐
I've tried it on a macbook and it installs and works fine without any issues, but I tried installing it on a laptop using ubuntu 19.10 and I'm getting errors trying to install it.
## versions
vim version: NVIM v0.5.0-dev
node version: v12.13.0
coc.nvim version: 0.0.74
term: tmux-256color
platform: linux
[coc.nvim] Installed extension: coc-explorer
[coc.nvim] Error on load extension coc-explorer from /home/username/.config/coc/extensions/node_modules/coc-explorer/lib/index.js: Error: Cannot find module 'trash'
Require stack:
- /home/username/.config/coc/extensions/node_modules/coc-explorer/lib/index.js
- /home/username/.config/coc/extensions/node_modules/coc-explorer/lib/index.js
I went into the coc-explorer
directory to try and see what happens if I add the trash
module manually and I get
Insufficient number of arguments or no entry found.
Alternatively, run 'webpack(-cli) --help' for usage info.
Hash: 9cd1ba0f17437bf8135b
Version: webpack 4.41.2
Time: 24ms
Built at: 11/02/2019 10:52:26
ERROR in Entry module not found: Error: Can't resolve './src' in '/home/username/.config/coc/extensions/node_modules/coc-explorer'
Not sure if this is the real underlying error or just a different thing. I've tried debugging this myself but I'm not very familiar with how coc extensions work, I'd appreciate any help
expected:
showing as highlighted item
actual:
ENOENT: no such file or directory
floating window does not have statusline to mark a label, and I have to make a choice when i have a normal window and a floating window open at the same time.
Hi,
I have a weird alignment issue when files have a git status different than "nothing":
This is the same with or without nerdfonts enabled.
My config:
"explorer.quitOnOpen": true,
"explorer.file.autoReveal": true,
"explorer.icon.enableNerdfont": true,
"explorer.file.column.indent.topLevel": false,
I tried to set the unmodified icon to a single space to force alignment but it didn't change anything.
Latest neovim on ubuntu 19.10 and kitty
I have vim
and coc
settings, very nicely split up by multiple files per extension. I don't really like an idea of keeping everything in a one file, which I cannot even move into a directory I like.
I would prefer a possibility to write settings, which are currently in coc-settings.json
, right in .vimrc
, so I can break it up as I like.
If that is not currently possible, can I propose a feature request? Thanks.
Would be nice if there was a way to open in a normal "horizontal" split.
In at least some other tree plugins (ones that have apparently formed a strong muscle memory for me ๐), hitting cr
on a file opens it, and hitting cr
on a folder will expand or collapse it. It would be nice if coc-explorer had an option to enable that behavior; maybe separate file and folder actions for cr
, or an option to change what "open" does by default with folders.
Is there any way to focus the explorer window if it's already open ?
Thanks
Hi, this plugin is interesting to me and I want to work on it.
Is there any documentation I can use for local development?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.