Giter VIP home page Giter VIP logo

ctrlsf.vim's Introduction

Neal Joslin

Software Developer located in Michigan. In search of tidbits and new knowledge.

Currently

Moving from Vim to Neovim and Lua

Working a lot with Typescript React Native Tailwind CSS Firebase

Making my life easier with Home Assistant

Tinkering with Workspace Specs


Technology

Python Django DjangoREST

Javascript Typescript jQuery React React Native

HTML5 CSS3 Bootstrap

Ruby Rails

PHP C C++

Postgres MariaDB MySQL

Virtualbox Vagrant Docker

ctrlsf.vim's People

Contributors

akupila avatar baopham avatar chrisbra avatar christianrondeau avatar dasea avatar dyng avatar eugoss avatar gaving avatar hiberabyss avatar idanarye avatar isaac-pascual avatar jeetsukumaran avatar jesuiswk avatar kevinhwang91 avatar khingblue avatar mkitt avatar mukulgupta21 avatar nealium avatar nkgm avatar shanesmith avatar smackesey avatar spacewander avatar subev avatar synic avatar unc0 avatar v-kolesnikov avatar vbwx avatar wsdjeg avatar yggdroot avatar zhyu avatar

ctrlsf.vim's Issues

VerifyConsistent Failing because of Carriage Returns (Windows)

Issue description

Saving an edit fails because the buffer and the file are not consistent, keeps asking to update and after update it still has the issue

File {edited-duo.vim} has been changed sience last search. Skip this file. Please run :CtrlsfUpdate to update your search results

Things about your system and environment(请在此填写你的系统信息)

field value
os Windows 10 Pro 21H1
vim Vim 8.2 Included patches: 1-12
backend ag 2.2.5
locale C.UTF-8

Log

StopJob
StopTimer: id=-1
Tokens: ['GUI color', '-filetype', 'vim']
ParsedResult: {'pattern': 'GUI color', 'filetype': 'vim'}
Options: {'pattern': 'GUI color', 'filetype': 'vim', '_vimregex': '\v\CGUI color', '_vimhlregex': {'normal': '\v\C(^\d+:.*)@<=GUI color', 'compact': '\v\C(\|\d+ col \d+\|.*)@<=GUI color'}}
Tokens: ['-C', '3']
ParsedResult: {'context': 3}
ExecCommand: ag -C 3  --smart-case  --vim -f --noheading --nogroup --nocolor --nobreak -- "GUI color" "\vimfiles\\colors"
TimerStarted: id=2
Searching...
HighlightRegex: \v\C(^\d+:.*)@<=GUI color
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 11,   endif^M], [Orig]: \vimfiles\\colors\edited-duo.vim:11-  endif^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 11,   endif^M], [Orig]: \vimfiles\\colors\edited-duo.vim:11-  endif^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 12, endif^M], [Orig]: \vimfiles\\colors\edited-duo.vim:12-endif^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 13, ^M], [Orig]: \vimfiles\\colors\edited-duo.vim:13-^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 14, " GUI color definitions], [Orig]: \vimfiles\\colors\edited-duo.vim:14:" GUI color definitions
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 15, let s:gui00 = "292824"^M], [Orig]: \vimfiles\\colors\edited-duo.vim:15-let s:gui00 = "292824"^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 16, let s:gui01 = "3d3a34"^M], [Orig]: \vimfiles\\colors\edited-duo.vim:16-let s:gui01 = "3d3a34"^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 17, let s:gui02 = "615e51"^M], [Orig]: \vimfiles\\colors\edited-duo.vim:17-let s:gui02 = "615e51"^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 109,   endif^M], [Orig]: \vimfiles\\colors\edited-duo.vim:109-  endif^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 109,   endif^M], [Orig]: \vimfiles\\colors\edited-duo.vim:109-  endif^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 109,   endif^M], [Orig]: \vimfiles\\colors\edited-duo.vim:109-  endif^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 110, endfun^M], [Orig]: \vimfiles\\colors\edited-duo.vim:110-endfun^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 111, ^M], [Orig]: \vimfiles\\colors\edited-duo.vim:111-^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 112, " Return GUI color for light/dark variants], [Orig]: \vimfiles\\colors\edited-duo.vim:112:" Return GUI color for light/dark variants
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 113, fun s:gui(color)^M], [Orig]: \vimfiles\\colors\edited-duo.vim:113-fun s:gui(color)^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 114,   if &background == "dark"^M], [Orig]: \vimfiles\\colors\edited-duo.vim:114-  if &background == "dark"^M
DefactorizeLine: [Factor]: [\vimfiles\\colors\edited-duo.vim, 115,     return a:color^M], [Orig]: \vimfiles\\colors\edited-duo.vim:115-    return a:color^M
StopTimer: id=2
Done!
ParseFinish
-- INSERT --

UnrenderedResultSet: [
  {
    'lnum': function('ctrlsf#class#paragraph#Lnum'),
    'range': function('ctrlsf#class#paragraph#Range'),
    'trim_tail': function('ctrlsf#class#paragraph#TrimTail'),
    'vlnum': function('ctrlsf#class#paragraph#Vlnum'),
    'matches': function('ctrlsf#class#paragraph#Matches'),
    'lines': [
      {
        'lnum': 11,
        'match': {},
        'vlnum': function('ctrlsf#class#line#Vlnum'),
        'set_vlnum': function('ctrlsf#class#line#SetViewLnum'),
        'matched': function('ctrlsf#class#line#Matched'),
        'vpos': {'normal': {'lnum': -1}},
        'content': '  endif^M'
      },
      {
        'lnum': 12,
        'match': {},
        'vlnum': function('ctrlsf#class#line#Vlnum'),
        'set_vlnum': function('ctrlsf#class#line#SetViewLnum'),
        'matched': function('ctrlsf#class#line#Matched'),
        'vpos': {'normal': {'lnum': -1}},
        'content': 'endif^M'
      },
      {
        'lnum': 13,
        'match': {},
        'vlnum': function('ctrlsf#class#line#Vlnum'),
        'set_vlnum': function('ctrlsf#class#line#SetViewLnum'),
        'matched': function('ctrlsf#class#line#Matched'),
        'vpos': {'normal': {'lnum': -1}},
        'content': '^M'
      },
      {
        'lnum': 14,
        'match': {},
        'vlnum': function('ctrlsf#class#line#Vlnum'),
        'set_vlnum': function('ctrlsf#class#line#SetViewLnum'),
        'matched': function('ctrlsf#class#line#Matched'),
        'vpos': {'normal': {'lnum': -1}},
        'content': '" GUI TEST EDIT definitions'
      },
      {
        'lnum': 15,
        'match': {},
        'vlnum': function('ctrlsf#class#line#Vlnum'),
        'set_vlnum': function('ctrlsf#class#line#SetViewLnum'),
        'matched': function('ctrlsf#class#line#Matched'),
        'vpos': {'normal': {'lnum': -1}},
        'content': 'let s:gui00 = "292824"^M'
      },
      {
        'lnum': 16,
        'match': {},
        'vlnum': function('ctrlsf#class#line#Vlnum'),
        'set_vlnum': function('ctrlsf#class#line#SetViewLnum'),
        'matched': function('ctrlsf#class#line#Matched'),
        'vpos': {'normal': {'lnum': -1}},
        'content': 'let s:gui01 = "3d3a34"^M'
      },
      {
        'lnum': 17,
        'match': {},
        'vlnum': function('ctrlsf#class#line#Vlnum'),
        'set_vlnum': function('ctrlsf#class#line#SetViewLnum'),
        'matched': function('ctrlsf#class#line#Matched'),
        'vpos': {'normal': {'lnum': -1}},
        'content': 'let s:gui02 = "615e51"^M'
      }
    ],
    '_matches': 0,
    'filename': 'edited-duo.vim'
  },
]

ChangedFile: edited-duo.vim
1 files will be saved. Confirm? (Y/n)
InconsistentContent: [Lnum]: 11, [FileInMem]:   endif^M, [FileOnDisk]:   endif
File edited-duo.vim has been changed since last search. Skip this file. Please run :CtrlsfUpdate to update your search result.
0 files are saved (1 skipped).
51 fewer lines
52 more lines
  • Trimmed, removed personal info, formatted UnrenderedResultSet

vimrc:

" CtrlSF
" let g:ctrlsf_debug_mode = 1
"   Maps -> Ctrl+F . Letter
nmap     <C-F>f <Plug>CtrlSFPrompt
vmap     <C-F>f <Plug>CtrlSFVwordPath
vmap     <C-F>F <Plug>CtrlSFVwordExec
nmap     <C-F>n <Plug>CtrlSFCwordPath
nmap     <C-F>p <Plug>CtrlSFPwordPath
nnoremap <C-F>o :CtrlSFOpen<CR>
nnoremap <C-F>t :CtrlSFToggle<CR>
inoremap <C-F>t <Esc>:CtrlSFToggle<CR>

"   Default Regex on
let g:ctrlsf_regex_pattern = 1
"   Don't be hangin
let g:ctrlsf_search_mode = 'async'

file:

  • Any Dos FileType, has Carriage Returns ^M

async Mode chopping off 1st Char on Write

Issue description

Saving an edit sometimes chops of the first character in the showed ~7 lines rendered on the __CtrlSF__ Buffer

Things about your system and environment(请在此填写你的系统信息)

field value
os Windows 10 Pro 21H1
vim Vim 8.2 Included patches: 1-12
backend ag 2.2.5
locale C.UTF-8

vimrc:

" CtrlSF
" let g:ctrlsf_debug_mode = 1
"   Maps -> Ctrl+F . Letter
nmap     <C-F>f <Plug>CtrlSFPrompt
vmap     <C-F>f <Plug>CtrlSFVwordPath
vmap     <C-F>F <Plug>CtrlSFVwordExec
nmap     <C-F>n <Plug>CtrlSFCwordPath
nmap     <C-F>p <Plug>CtrlSFPwordPath
nnoremap <C-F>o :CtrlSFOpen<CR>
nnoremap <C-F>t :CtrlSFToggle<CR>
inoremap <C-F>t <Esc>:CtrlSFToggle<CR>

"   Default Regex on
let g:ctrlsf_regex_pattern = 1
"   Don't be hangin
let g:ctrlsf_search_mode = 'async'

file:

  • Any File, no consistency

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.