Skip to content

feature request: incremental regexp diffing #20

@anchnk

Description

@anchnk

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.

################################################################################
#
#    ██████╗   ██╗   ██╗  ███╗   ██╗  ███████╗  ████████╗  ██████╗    ██████╗
#    ██╔══██╗  ██║   ██║  ████╗  ██║  ██╔════╝  ╚══██╔══╝  ██╔══██╗  ██╔════╝
#    ██║  ██║  ██║   ██║  ██╔██╗ ██║  ███████╗     ██║     ██████╔╝  ██║
#    ██║  ██║  ██║   ██║  ██║╚██╗██║  ╚════██║     ██║     ██╔══██╗  ██║
#    ██████╔╝  ╚██████╔╝  ██║ ╚████║  ███████║     ██║     ██║  ██║  ╚██████╗
#    ╚═════╝    ╚═════╝   ╚═╝  ╚═══╝  ╚══════╝     ╚═╝     ╚═╝  ╚═╝   ╚═════╝
#
#    Author: anchnk
#    Date: 24.07.2017
#    Dunst: v1.2.0
#    File: dunstrc
#    Last Modified Date: 24.07.2017
#    Last Modified By: anchnk
#    Location: $HOME/.config/dunst/dunstrc
#
################################################################################

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions