Skip to content

Instantly share code, notes, and snippets.

Not even trying to work...

Kos Ivantsov kosivantsov

Not even trying to work...
Block or report user

Report or block kosivantsov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
yu-tang / adapt_tags_to_match_target.groovy
Last active Jul 10, 2017
View adapt_tags_to_match_target.groovy
/* :name=Adapt standard tags :description=Adapt standard tags when Replace with Match command invoked
* The workaround by script for RFE #841:
* Adapt tags to match target
* | Editor | Match
* -------+--------------+--------------
* Source | <a1>foo</a1> | <a9>foo</a9>
* -------+--------------+--------------
yu-tang / enumFilteredSegments.groovy
Last active Nov 19, 2015
Enumerate filtered segments.
View enumFilteredSegments.groovy
console.println 'Enumerate filtered segments.'
def entries = project.allEntries
def filter = editor.filter ?: [allowed: {true}]
def found = entries.findAll { filter.allowed it }
// Do something for each SourceTextEntry here
found.each {
// get translation info
def info = project.getTranslationInfo(it)
You can’t perform that action at this time.