Coder Social home page Coder Social logo

vim-qfedit's Introduction

vim-qfedit

Edit the quickfix/location list freely

There's no need to configure for this plugin. Just edit the quickfix/location list buffer.

qfedit

Installation

Install with your favorite plugin manager.

Author

itchyny (https://github.com/itchyny)

License

This software is released under the MIT License, see LICENSE.

vim-qfedit's People

Contributors

cdlscpmv avatar ichizok avatar itchyny avatar ksr-yasuda 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

Watchers

 avatar  avatar  avatar  avatar

vim-qfedit's Issues

When opening the QuickFix window automatically, initialization fails

Problem:

vim-qfedit with "quickfix auto open" together, it dose not work.

Reproduction:

Start vim

gvim -u -N .vimrc

and exec 2 ex command

:autocmd BufReadPost quickfix echom 'call autocmd'
:autocmd QuickFixCmdPost vimgrep cwindow

when start :vim (ex vim set % ), and then message check.

Result:
Do not echo 'call autocmd'

Workaround:
When occur it, qf open/close toggled, then vim-qfedit work fine.

I hope fix it.
Suggestion, use autocmd Filetype qf are solved it?

Some kind of conflict with fugitive/dispatch

When I run some fugitive command (:0Gclog for example), the quickfix list is cleared when it gets focused.

For reproduce:
Just run any command from fugitive (or dispatch.vim) (:0Gclog, :Dispatch, :Glog) that feeds the quickfix list and focus on the quick fix window.

The problem not happens when the quickfix was feed manually nor with those commands above with this plugin disabled.

Thank you for the plugin.

quickfix still not modifiable ?

Hi,
I saw this plugin and am happy to try it out.
Thank you for awesome lightline.
So I installed this via Vundle, but my quickfix window is still not modifiable.
If I manually go to qf win and then :set ma all is ok, but I wanted to find a way to make it modifiiable always.
Any idea how I can help debug ?
I tried removing a few other plugins related to qf, but I still have the same problem.
thx for any help or suggestion,
-m

An outline with `gO` is broken

Description

In help documentations, gO shows an outline of the buffer (Only Neovim supports this). But current qfedit seems to break this function.
Though pressing gO creates a new quickfix buffer, it shows nothing.

How to reproduce

cd /tmp
git clone https://github.com/itchyny/vim-qfedit
echo 'vim.opt.rtp:append("/tmp/vim-qfedit/")' > init.lua
nvim -u /tmp/init.lua

then

:help vim

finally type gO

Current behavior

Screenshot 2024-02-19 at 22 45 25

Expected behavior

Screenshot 2024-02-19 at 22 47 56

Version

nvim --version
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1703358377

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim"

Run :checkhealth for more info

and

NVIM v0.10.0-dev-2398+gcc15ba212-Homebrew
Build type: Release
LuaJIT 2.1.1703358377
Run "nvim -V1 -v" for more info

If "zero bytes" specified for setloclist, not work.

Thanks for the great plugin.

reproduced

  1. gvim.exe -Nu miminal.vimrc
" minimal.vimrc

" add vim-qfedit to runtimepath
set packpath=$HOME/pack_minimal
packadd vim-qfedit
  1. Iaaa<C-v>0bbb<C-v>0ccc<ESC>
  2. 0yg_ " copy the string containing zero bytes.
  3. :call setloclist(0, [{'lnum': 1, 'col': 1, 'filename': 'C:\r.rb', 'type': 'E', 'text': getreg(v:register)}]) <CR>" set zero bytes to locallist
  4. :lopen<CR>
  5. <C-w>k
  6. :call setloclist(0, [{'lnum': 1, 'col': 1, 'filename': 'C:\r.rb', 'type': 'E', 'text': getreg(v:register)}])<CR>
  7. :lopen<CR>

expected

The string should be displayed at location list.

actual

Nothing is displayed.

my env

windows 10

VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Aug 16 2021 22:02:45)
MS-Windows 64 ビット GUI 版 with OLE サポート
適用済パッチ: 1-3356
Compiled by appveyor@APPVYR-WIN

others

I noticed this behavior when using vim-lsp, vim-lsp-setting and vim-qfedit

  1. (echo excecutable('solargraph') " => 1)
  2. gvim.exe -Nu minimal2.vimrc run.rb
" minimal2.vimrc

" add vim-lsp, vim-lsp-setting and vim-qfedit to runtimepath
set packpath=$HOME/pack_minimal
packadd vim-lsp-settings
packadd vim-lsp
packadd vim-qfedit

filetype plugin indent on
syntax enable
  1. :e c:\path\to\err.rb<CR>
" err.rb
r = r + hoge "11"
  1. :LspDocumentDiagnostics<CR>
  2. :LspDocumentDiagnostics<CR>
    -> Nothing is displayed.

This behavior may be caused by the following that vim-lsp sets the location list to a string containing zero bytes, but vim-qfedit compares with a string in which zero bytes are excluded.

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.