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

Eric Le Lay via jEdit-devel <[email protected]> Sun, 17 Sep 2023 18:24:04 -0000
Newsgroups gmane.editors.jedit.devel
Message-ID </p/jedit/patches/632/8747ac0d2bb1480ab0ad5b883ba9bd0a72b1b69f.patches@jedit.p.sourceforge.net>
- **status**: open --> closed-accepted
- **Group**:  --> 
- **Comment**:

committed  in [r25683](https://sourceforge.net/p/jedit/svn/25683/)



---

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

**Status:** closed-accepted
**Group:** 
**Created:** Fri May 27, 2022 10:50 AM UTC by Eric Le Lay
**Last Updated:** Fri May 27, 2022 11:23 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