Giter Site home page Giter Site logo

Comments (5)

brooth avatar brooth commented on August 26, 2024

What source are you using?

from far.vim.

maple-leaf avatar maple-leaf commented on August 26, 2024

@brooth agnvim

from far.vim.

brooth avatar brooth commented on August 26, 2024

Plz attach far.vim.log, how-to in the help.

from far.vim.

maple-leaf avatar maple-leaf commented on August 26, 2024

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.

brooth avatar brooth commented on August 26, 2024

Sorry for this late fix. Use standard backslash escaping:
:Far test\( it( %

from far.vim.

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.