Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 12, 2022. It is now read-only.

Addsearchprog #46

Open
eyalk11 wants to merge 2 commits into ipod825:master
base: master
Choose a base branch
Loading
from eyalk11:addsearchprog
Open

Addsearchprog #46

eyalk11 wants to merge 2 commits into ipod825:master from eyalk11:addsearchprog

Conversation

Copy link

@eyalk11 eyalk11 commented Dec 6, 2021
edited
Loading

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 .

Copy link
Owner

ipod825 commented Dec 6, 2021

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

eyalk11 reacted with thumbs up emoji



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

@ipod825 ipod825 Dec 8, 2021

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

@ipod825 ipod825 Dec 8, 2021

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

@ipod825 ipod825 Dec 8, 2021

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.
Reviewers
1 more reviewer

@ipod825 ipod825 ipod825 requested changes

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants

AltStyle によって変換されたページ (->オリジナル) /