Roman Hubacek wrote:
william wrote:
[snip]
Yes, it is possible. I wrote lua function that does it for you. Put this into your startup script:

function replace_title()
  i = 1
  for m in editor:match("Title") do
    m:replace(i)
    i = i + 1
  end
end

The following change to the above function makes it a bit more specific and a little less dangerous:

for m in editor:match("^ *= *Title", SCFIND_REGEXP+SCFIND_MATCHCASE) do
... etc.

It matches only lines that start with something like "= Title".

HTH,
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia
_______________________________________________
Scite-interest mailing list
Scite-interest@lyra.org
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to