Skip to content

Add "edit" command - #18

Open
javiplx wants to merge 8 commits into
paluh:masterfrom
Feverup:feature/edit_command
Open

Add "edit" command#18
javiplx wants to merge 8 commits into
paluh:masterfrom
Feverup:feature/edit_command

Conversation

@javiplx

@javiplx javiplx commented Feb 22, 2016

Copy link
Copy Markdown
Contributor

This change adds an "edit" command, which is basically an ins+set. The main changes respect to the use of both commands in sequence is that the node is not inserted if it already exists (so, "edit" is not usable for labels with multiple entries). And it also adds a "comment" flag which search for a comment with the label on it, and insert the new node after it. This means that

command=edit label=remote_user comment=True ...

will insert the node after

# remote_user = ...

if that line exists, and after path if not. I've used this only on .ini files up to now, but should work in the general case.

@paluh

paluh commented Feb 22, 2016

Copy link
Copy Markdown
Owner

@javiplx, please give me a few hours (I hope I will find them this evening), so I can read and test your propositions.

@javiplx

javiplx commented Feb 22, 2016

Copy link
Copy Markdown
Contributor Author

No hurry from my side, as I'm already using it ...

@jippi

jippi commented Apr 11, 2017

Copy link
Copy Markdown

Any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants