nealium / ctrlsf.vim Goto Github PK
View Code? Open in Web Editor NEWThis project forked from dyng/ctrlsf.vim
A text searching plugin mimics Ctrl-Shift-F on Sublime Text 2
This project forked from dyng/ctrlsf.vim
A text searching plugin mimics Ctrl-Shift-F on Sublime Text 2
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
field | value |
---|---|
os | Windows 10 Pro 21H1 |
vim | Vim 8.2 Included patches: 1-12 |
backend | ag 2.2.5 |
locale | C.UTF-8 |
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
" 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'
Saving an edit sometimes chops of the first character in the showed ~7 lines rendered on the __CtrlSF__
Buffer
field | value |
---|---|
os | Windows 10 Pro 21H1 |
vim | Vim 8.2 Included patches: 1-12 |
backend | ag 2.2.5 |
locale | C.UTF-8 |
" 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'
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.