Skip to content
This repository was archived by the owner on Sep 12, 2022. It is now read-only.

Addsearchprog #46

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Addsearchprog #46

wants to merge 2 commits into from

Conversation

eyalk11
Copy link

@eyalk11 eyalk11 commented Dec 6, 2021

This add options of and during search in order to goto dir and open search rapidly.
There is a glitch in which cursor seen twice after revisit . And also, need to press many escapes to quit search.
Still good. Also, added ignore casing the right way.
Also, forgot something in windows fix (nice to have).

Sorry, I didn't want to invest some time reorganizing commits .

@ipod825
Copy link
Owner

ipod825 commented Dec 6, 2021

Thanks! I'll spend some time looking into you pull requests.



def Echo(msg):
vim.command(f'unsilent echo "{msg}"')
vim.command('unsilent echo "%s"' % (msg.replace("\\","\\\\"),))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use fstring to be consistent with other part of the codebase.

].index(Vim.current.line) + 1

self._NETRSearchStop(True)
nod=self.cur_buf.nodes[accept_line_nr-1]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename nod to node.

self.NETRBufOpen()
self.NETRSearch()
else:
self.NETRParentDir()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like this is a very niche need. Why would you want to go to parent directory when you search? Search and goto the search target sounds like a plausible need, but search and goto parent sounds like two unrelated things.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants