[jedit:patches] #632 patch for FR #554 add match index to beanshell replace context

Eric Le Lay via jEdit-devel <[email protected]>
Newsgroups gmane.editors.jedit.devel
Message-ID </p/jedit/patches/632/ac44d12ebfcefdba5df43b96591eec63b47a47a5.patches@jedit.p.sourceforge.net>
I will also add some examples in the Search/Replace documentation


---

** [patches:#632] patch for FR #554 add match index to beanshell replace context**

**Status:** open
**Group:** 
**Created:** Fri May 27, 2022 10:50 AM UTC by Eric Le Lay
**Last Updated:** Fri May 27, 2022 10:50 AM UTC
**Owner:** Eric Le Lay
**Attachments:**

- [0001-fix-FR-554-add-match-index-to-beanshell-replace-cont.patch](https://sourceforge.net/p/jedit/patches/632/attachment/0001-fix-FR-554-add-match-index-to-beanshell-replace-cont.patch) (5.8 kB; text/x-patch)


fix FR#554 add match index to beanshell replace context

Current status:
simple version, working with replace all. 2 variables starting at 0:
 - `index` is the match index in buffer,
 - `indexInSel` resets on each selection (in case you want this in
   multiple selection mode)

not implemented:
 - keep index between Replace button clicks
 - a global index (not sure if it's useful)
 - also add match line number


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/jedit/patches/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/jedit/admin/patches/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

-- 
-----------------------------------------------
jEdit Developers' List
[email protected]
https://lists.sourceforge.net/lists/listinfo/jedit-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.