Giter Site home page Giter Site logo

Comments (5)

szw avatar szw commented on May 18, 2024

Sounds reasonable. 👍 Goes to TODO. I should have some vacation soon and I plan to spend some time on processing that TODO list :).

from vim-ctrlspace.

Konfekt avatar Konfekt commented on May 18, 2024

Perhaps the following function might come in handy for escaping special characters (other than the *), netrw Gitignore only escapes the ..

function! s:EscapeString (string)
  let string=a:string
  " Escape regex characters. See http://www.regular-expressions.info/characters.html
  let string = escape(string, '^$.|?*+(){[\')
  return string
endfunction

Nice holidays !

from vim-ctrlspace.

szw avatar szw commented on May 18, 2024

After latest changes this goal (to obey .gitignore) could be achieved easily with the Ag support: https://github.com/szw/vim-ctrlspace#gctrlspace_glob_command. Ag obeys .gitignore out of the box.

from vim-ctrlspace.

Konfekt avatar Konfekt commented on May 18, 2024

It works with

if executable("ag")
  let g:ctrlspace_glob_command = 'ag -l --nocolor -g ""'
endif

instead (no dot). Can you remove the trailing \r when listing the files? Ag's output on Windows gives them with a \r\n separator.

from vim-ctrlspace.

szw avatar szw commented on May 18, 2024

👍 Thanks @Konfekt, you are right. I've added the CR removal and improved the example in the docs. Cheers!

from vim-ctrlspace.

Related Issues (20)

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.