Giter Club home page Giter Club logo

coc-lists's Introduction

Neoclide

Neoclide is a rework of Nyaovim, the reason is I want it have best user experience.

Neoclide is an editor built with web technologies while emebed with neovim.

Neoclide is in early development, which means it could break easily, and you should not take it seriously.

Since I use Mac only, something could break on other platform, I need your help!

What have done

  • Global session save and restore
  • Fixed copy/paste behaviour
  • Fixed drag and click position calculate
  • Fixed trigger of VimLeave event
  • Background transparent support
  • Improved input method support
  • Improved cursor support
  • Accessable editor state object
  • Automatic resize handler, no screen blink

How to use

Since it's in early age, no prebuild currently avaiable, you have to use it from souce code.

  • Clone this repository

  • Run following commands to install dependencies and build code

    npm run dep
    npm run build
    
  • To start the app, use:

    npm run app
    

LICENSE

Copyright 2016 [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

coc-lists's People

Contributors

adelarsq avatar bkoropoff avatar chemzqm avatar esn89 avatar fannheyward avatar fishioon avatar happylinks avatar iamcco avatar jackielii avatar kidonng avatar loyalpartner avatar nomasprime avatar oncomouse avatar pldaily avatar soywod avatar talha131 avatar tombh avatar voldikss avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

coc-lists's Issues

:CocList grep does not work

:CocList
selecting grep
typing into the prompt works as expected.

:CocList grep
typing into the prompt nothing happens. No results are shown

Option to search a specific folder?

VSCode's file search allows you to specify patterns of "files to include". Then it will only search files matching those patterns. grep, ag & rg all accept a path to search in. What do you think about adding an option to grep like -include that takes a specific path (or pattern if it's supported by the tool) to include and passes them on to the underlying tool's PATH option?

Custom arguments for list sources

For custom sources, it would be nice to have arguments that are specific to that source.

So for the files source, it could have a rootdir argument so that you can restrict it to only show files in that directory.

For that specific example you could probably change the listmanager cwd but more generally there isn't a good way to communicate with a list source from outside.

I could do a PR for this if it's a feature you think would be useful

[question] Pass custom arguments to grep

I like the default behavior of excluding hidden files when doing a CocList files or CocList grep command. However, it happens that I also want to search hidden files sometimes. How can create a mapping that allows me to pass --hidden to ripgrep?

I know it's possible with the configuration: list.source.files.args: ['--hidden', '--files'] but I'm not interested in changing the default behavior.

According to the documentation, there's an argument option :CocList [LIST OPTIONS] files [ARGUMENTS] but these are for coc-list and not passed down to ripgrep.

Thank you 🙏

Doesn't show errors when ag command is missing

I didn't have ripgrep installed for the files CocList but instead of showing an error message I just got an empty list. I think showing an error message that tell the user what's wrong would be easier to understand.

Searching using spaces returns no results

:CocConfig

{
  "list.source.grep.command": "ag",
  "list.source.grep.args": ["-i"]
}

Minimal example:

$ cat <<EOF > file.txt
heredoc> asdasd
heredoc> cv er
heredoc> EOF

$ ag "v e"
file.txt
2:cv er

Both return no results:

:CocList grep e v
:CocList grep "e v"

coc-grep sometimes doesn't work properly

In one of my git repos when I try a certain word with coc-grep not all of the instances are found. But if in a different folder I clone the same repo from the remote again the same word is found without any problems. How can I debug this issue? Is there cache that coc-nvim keeps that I can delete? Thanks.

coc-lists outline窗口会修改寄存器内容

按如下步骤操作:

  1. 打开coc-lists outline交互窗口
  2. 输入内容,outline窗口筛选出匹配的函数名称
  3. 按esc退出outline窗口
  4. 输入:reg,发现1号寄存器的内容被改变了

请问这是什么原因

Highlighting for grep/buffers

When viewing lists for grep and buffers, upon typing it doesn't highlight the searched fuzzy term like files, mru, diagnostics etc do.

rg regular expression

It seems like -e and -regex don't work for rg?

I can only get regex matching by using :ColList grep -e one|two. It seems like when using regex, ripgrep want the pattern after like:

*rg* [_OPTIONS_] *-e* _PATTERN_... [_PATH_...]

It would be nice if in -e was specified in grep.args that it would place the search text in the correct place to default to always using regex match.

Support for helptags, command and search history

This is the first time I'm giving feedback to coc.nvim in general, so I want to thank you @chemzqm for the amazing work on this plugin. I love it and the speed of it improving is staggering!

I am currently replacing fzf plugin with CocList. Are there any plans to add lists for helptags, command history and search history? I know there are other, vim native, commands for achieving this, but I'm used to this fzf type workflow. I'm willing to contribute if you think these should be added.

Helptags search in fzf.vim

"list.source.files.excludePatterns" Not Working Properly

coc-lists/src/files.ts

Lines 30 to 38 in eee96b5

rl.on('line', line => {
if (hasPattern && patterns.some(p => minimatch(file, p))) return
let file = path.join(cwd, line)
let location = Location.create(Uri.file(file).toString(), range)
this.emit('data', {
label: line,
location
})
})

I think you just need to swap the lines here - getting a file is not defined error here when patternsis defined (via thelist.source.files.excludePatterns` option

coc and vim-obsession

Describe the bug

When using coc and vim-obsession, the obsession informations in the session file are lost when quitting, leading to a normal session file that isn't handeld by obsession anymore.

Reproduce the bug

  • save a session with Obsession filename
  • quit
  • start nvim and the session again, g:this_obsession doesn't exist anymore and session isn't tracked

Put the result in the quickfix / loclist

Is there any way to put the result of a research (no matter the list) in the quickfix or the loclist? For eg, with fzf, <tab> selects the target, then <enter> put them in the quickfix.

correcting the read me

The README.md says:

"Type lists.source to in coc-settings.json to get available options.

However, while two settings incoc-settings.json extend from lists.source, all the rest extend from list.source.

(Also see the typo -- the stray 'to' -- in that quote from README.md.

[Bug report] Can not close list using <Esc>

  • 版本: NVIM v0.4.0-dev

  • 最小化vimrc:

set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath

call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile', 'frozen':1}
call plug#end()
  • 复现步骤:
    • :CocList --normal<CR>
    • : (按 :进入底部命令行窗口)
    • <Esc> (按<Esc>,此时光标应该位于 list 窗口)
    • <Esc> (无法关闭 list 窗口)

can't open mru files when upgrade coc-nvim

I have just upgrade my coc-nvim to 0.0.69. and coc-list mru feature seems broken. when I select a mru file and hit enter, nothing happens. But before upgrading, I can open mru files either hit enter or with my custom key binding after selected

Help with "find current word in all workspace files"

Hi,

I am trying to move away from fzf. One of the functions I like to have is using grep/rg, to be able to find the word that is currently under my cursor and then in the list, show all the places in the workspace where such a word exists.

Here is what it looks like in fzf:

https://i.imgur.com/sfw12uI.png

My cursor is under the word "raise". I use my mapping of cf and I'm able to see in fzf all the files and lines numbers where such word exists.

I would like to achieve the same thing using coc-lists. So far, without success. I tried to make a command like:

nnoremap <silent> <Leader>cf  :CocList grep --input='.expand('<cword>').'<CR>

But that didn't work.  Any help would be appreciated.

Options to hide parts of buffer source

Another feature request:
Can I send a PR to add some options to hide parts of the buffer list.
I'm probably not the only person who uses only the file name most of the time, so it'd be nice to have only that shown, but I could easily add 3 flags to hide each of the 3 columns.

List source `file` is not available on Windows

CocInfo:

  • vim:
vim version: VIM - Vi IMproved 8.1 (2018 May 18, compiled May 18 2018 18:26:56)
node version: v12.4.0
coc.nvim version: 0.0.72-457d77287e
term: undefined
platform: win32
  • neovim:
## versions

vim version: NVIM v0.4.0-819-g66d127957
node version: v12.4.0
coc.nvim version: 0.0.72-457d77287e
term: undefined
platform: win32

Terminal:

  • powershell
  • cmd
  • Gui environment such as gvim and nvim-qt

System:
Windows 10 Home Basic 1903

Problem:
The list source file is empty like this picture:
图片

While other list sources, like mru and buffers, are all available.
图片

And the list source file is available in my Linux system with the same .vimrc file.

Custom menu

This is not a issue. It's possible with this plugin to make something like quickmenu? The idea is to be possible populate commands and descriptions in vimrc and by others plugins 🙂

CocList -I words does not work on Vim help

Hello.

I frequently use CocList -I words to search buffer. It works quite well, except on Vim help buffer. For example, :help coc-nvim and :CocList -I --input=coc words returns empty list.

Is this expected behavior?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.