Commit graph

14 commits

Author SHA1 Message Date
Rodolphe Breard
c296d354b2 Update the code type in the README.
The sample custom patterns were defined as `json`, which doesn't renders
nicely on GitHub. They are now defined as `js` which is much more
readable.
2015-11-15 00:06:58 +01:00
Rodolphe Breard
317389ec31 Add the support for multiple formats.
Some people does not use the common YYYYMMDDXX format and/or does not
want to use the "; serial" comment right after the serial number. This
commit allow multiple formats to be defined, hense more users can use
the plugin. A huge consequence of this is that user can also define
additional custom formats depending on their needs.
2015-11-15 00:02:46 +01:00
Rodolphe Breard
acc6dd81e1 Add a Patterns section to the README.
The documentation on how the DNS serial number have to be formated was
missing. Even if the pattern is very common, it is important to specify
it.
2015-11-14 19:32:44 +01:00
Rodolphe Breard
2f1756485c Add a Usage section in the README.
Users shouldn't have to guess neither that the plugin auto-updates the
DNS serial number nor the name of the function to call to manually
update it.
2015-11-14 19:12:03 +01:00
Rodolphe Breard
a4c03b38a5 Add the possibility to turn off the automatic serial update.
Some users may want to explicitly update the DNS serial number. Instead
of forcing them to update on each write, a new configuration option is
used so they can chose turn it off.
2015-11-14 19:05:12 +01:00
Rodolphe Breard
d54d2f0991 Add a badge with the license.
Using such a badge allows the user to quickly identify the license.
2015-11-09 11:28:56 +01:00
Rodolphe Breard
bea1fc4b9a Load functions only when needed.
Even if this plugin is small, DNS zone editing may not be very frequent.
Therefore, there is no point defining those functions every time vim
start. Moving them to the autoload directory solve this problem.
2015-10-18 20:31:17 +02:00
Rodolphe Breard
c648319928 Remove superfluous "author" line in the license headers.
These lines were added automatically and are not needed. They are not in
the boilerplate notice given in the Apache license and therefore can be
safely removed.
2015-10-18 20:16:53 +02:00
Rodolphe Breard
9799c16153 Add serial auto-update on write.
It is easy to forget to update the serial number. Therefore, it is now
updated each time the file is saved. Just like what emacs natively do...
:-)
2015-10-18 20:01:49 +02:00
Rodolphe Breard
711b8d98d6 Removing trailing spaces. 2015-10-18 19:32:38 +02:00
Rodolphe Breard
90e6eb1bd8 Accept an unlimited number of digits for the revision id.
Having exactly two digits is very common but also restrictive. Hence, it
is now required to have at least one digit. However, the new serial will
be on at least two digits.
2015-10-18 19:27:51 +02:00
Rodolphe Breard
c11e41624b Replace the function call with a user command.
A user command is much more user-friendly than a function.
2015-10-18 19:23:09 +02:00
Rodolphe Breard
0c5a670463 Add a "why?" section in the readme.
Knowing why this plugin has been written may help users to use it
instead of the old one.
2015-10-18 01:17:31 +02:00
Rodolphe Breard
4d316538e8 Initial commit. 2015-10-18 00:59:31 +02:00