Comments (5)
What source are you using?
from far.vim.
@brooth agnvim
from far.vim.
Plz attach far.vim.log
, how-to in the help.
from far.vim.
Sorry for late reply, being busy these days. Here's log output
debug enabled!
[13:04:38] =============== FAR ================
[13:04:38] cmdline: test( it( %
[13:04:38] far#find({'pattern': 'test(', 'file_mask': '%', 'range': [-1, -1], 'replace_with': 'it('},[])
[13:04:38] assemble_context({'pattern': 'test(', 'replace_with': 'it(', 'range': [-1, -1], 'limit': 1000, 'file_mask': '%', 'cwd': '/Users/tangjinfeng/.config/nvim', 'source': 'agnvim'},{'highlight_match': 1, 'preview_layout': 'bottom', 'result_preview': 1, 'preview_width': 100, 'layout': 'right', 'preview_height': 11, 'width': 100, 'height': 20, 'auto_preview': 1, 'collapse_result': 0})
[13:04:38] source: {'args': {'cmd': ['ag', '--nogroup', '--column', '--nocolor', '--silent', '--max-count={limit}', '{pattern}', '--file-search-regex={file_mask}', '--smart-case', '--ignore-case'], 'fix_cnum': 'next', 'items_file_min': 30, 'expand_cmdargs': 1}, 'executor': 'nvim', 'fn': 'far.sources.shell.search'}
[13:04:38] executor: far#executors#nvim#execute
[13:04:38] s:param_proc()
[13:04:38] far#rpc#nvim_invoke(['mod = importlib.import_module("far.sources.shell")', 'res = mod.search({"pattern": "test(", "replace_with": "it(", "range": [-1, -1], "limit": 1000, "file_mask": "test.js", "cwd": "/Users/tangjinfeng/.config/nvim", "source": "agnvim"}, {"cmd": ["ag", "--nogroup", "--column", "--nocolor", "--silent", "--max-count={limit}", "{pattern}", "--file-search-regex={file_mask}", "--smart-case", "--ignore-case"], "fix_cnum": "next", "items_file_min": 30, "expand_cmdargs": 1},[])', 'self.nvim.command("call far#executors#nvim#callback("+str(res)+", 0)")'])
[13:04:38] nvim invoke res:0
[13:04:38] farnvim:_far_nvim_rpc_invoke([['mod = importlib.import_module(`far.sources.shell`)', 'res = mod.search({`pattern`: `test(`, `replace_with`: `it(`, `range`: [-1, -1], `limit`: 1000, `file_mask`: `test.js`, `cwd`: `/Users/tangjinfeng/.config/nvim`, `source`: `agnvim`}, {`cmd`: [`ag`, `--nogroup`, `--column`, `--nocolor`, `--silent`, `--max-count={limit}`, `{pattern}`, `--file-search-regex={file_mask}`, `--smart-case`, `--ignore-case`], `fix_cnum`: `next`, `items_file_min`: 30, `expand_cmdargs`: 1},[])', 'self.nvim.command(`call far#executors#nvim#callback(`+str(res)+`, 0)`)']])
[13:04:38] farnvim:search({'pattern': 'test(', 'replace_with': 'it(', 'range': [-1, -1], 'limit': 1000, 'file_mask': 'test.js', 'cwd': '/Users/tangjinfeng/.config/nvim', 'source': 'agnvim'}, {'cmd': ['ag', '--nogroup', '--column', '--nocolor', '--silent', '--max-count={limit}', '{pattern}', '--file-search-regex={file_mask}', '--smart-case', '--ignore-case'], 'fix_cnum': 'next', 'items_file_min': 30, 'expand_cmdargs': 1}, [])
[13:04:38] assemble_context_callback()
File content used for testing
// test.js
function test() {
}
from far.vim.
Sorry for this late fix. Use standard backslash escaping:
:Far test\( it( %
from far.vim.
Related Issues (20)
- Search hidden files? HOT 3
- vim windows are normalized after Far execution
- Setting ignore_files results in errors when searching HOT 2
- Error when use Fardo with ripgrep HOT 2
- Support for case-preserving substitution, or vim-abolish mode
- Unable to handle open parenthesis HOT 1
- "L76 E64: * follows nothing; E475: Invalid argument: \%53l\%18c\v*\c" when using the multiline replacement
- When running Fardo on C++ file all matches just turn red and no changes take place HOT 4
- Visual selection disables randomly
- Add some way to filter results after searching
- Add debounce to results window loading
- Search in project [improvement] HOT 1
- Arrows not working while writing text [bug] HOT 1
- \b prevents replacement
- Far and Fardo raise errors
- Error when using ripgrep or Ag HOT 1
- Far search fails if folder / file name containing characters {{ or }}
- File mask not being applied when g:far#source='ag'
- Feature request: Use ripgrep's globs HOT 3
- Search all files by default? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from far.vim.