-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: incremental regexp diffing #20
Comments
Hello, |
Oh sorry my explanation was confusing. I am just wondering if the header attributes ( That would require to expose a function that would search the first occurrence of |
Oh, I didn't read very well sorry. Now I got the point. Actually |
Now that Also there's are several white spaces between the comment_char and headers'field in my banner. That's why I thought exporting a function that would update fields only would be great. I mainly need it to be able to have |
Btw if that can help to get what I mean my |
I worked a bit on this feature, it might be messy so I am looking for your opinion on this before even considering to make a PR. Here you can see the diff between the 2 versions: It changes the way the update was working by checking if headers are present from top of the buffer to a certain threshold set by the user (option
So for example, if in my
If
Let me know what you think about it and if you want to give it a try to make suggestions. |
Hi again. I am not available so much nowadays to inspect the issue. However I looked into diff and your improvements looks reasonable. When you are done, you can send PR. 👍 |
Is it doable to expose a function that will update fields that matches a certain pattern on lines ?
For instance, here's the typical kind of headers I do have in my configuration files.
Having a function that would update
Author
,Date
,File
,Last Modified Date
,Last Modified By
fields' values without changing the structure of my headers would be awesome.I understand that would not be top priority but I do believe it would add more flexibility to the plugin and also would avoid the need to wrote a script for that. Well at least if that use case can benefits to others.
The text was updated successfully, but these errors were encountered: