René's URL Explorer Experiment


Title: editor.research() and editor.search() won't search backwards · Issue #323 · bruderstein/PythonScript · GitHub

Open Graph Title: editor.research() and editor.search() won't search backwards · Issue #323 · bruderstein/PythonScript

X Title: editor.research() and editor.search() won't search backwards · Issue #323 · bruderstein/PythonScript

Description: Under PS 3.0.16.0 (and 2.0.0.0 as well), editor.research() and editor.search() won't search backwards, i.e., when the startPosition argument is greater than the endPosition argument. It return no matches in such a case. Here is a script ...

Open Graph Description: Under PS 3.0.16.0 (and 2.0.0.0 as well), editor.research() and editor.search() won't search backwards, i.e., when the startPosition argument is greater than the endPosition argument. It return no m...

X Description: Under PS 3.0.16.0 (and 2.0.0.0 as well), editor.research() and editor.search() won't search backwards, i.e., when the startPosition argument is greater than the endPosition argument. It return ...

Opengraph URL: https://github.com/bruderstein/PythonScript/issues/323

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"editor.research() and editor.search() won't search backwards","articleBody":"Under PS 3.0.16.0 (and 2.0.0.0 as well), `editor.research()` and `editor.search()` won't search backwards, i.e., when the `startPosition` argument is greater than the `endPosition` argument.  It return no matches in such a case.\r\n\r\nHere is a script which demonstrates the problem, when the script is executed to act upon its own code as input data in the active editor tab in N++:\r\n\r\n```py\r\n# -*- coding: utf-8 -*-\r\nfrom __future__ import print_function\r\n\r\nfrom Npp import *\r\n\r\npos1 = 0; pos2 = editor.getLength()  # forward search, i.e., pos1 \u003c pos2\r\n(pos1, pos2) = (pos2, pos1)  # swap to do backward search\r\n\r\nmatches = []\r\neditor.research('a', lambda m: matches.append(m.span(0)), 0, pos1, pos2)\r\nprint('research:', matches[0]) if len(matches) > 0 else print('research: no matches')\r\n\r\n# show that editor.findText() works fine either forward or backward:\r\nft_pos_tup = editor.findText(FINDOPTION.REGEXP, pos1, pos2, 'a')\r\nprint('ft_pos_tup:|{T}|'.format(T=ft_pos_tup))\r\n```\r\n\r\nTo see the problem, run the script as written.  To see that the script logic works for a forward search, comment out the \"swap\" line.  Note that a call to `editor.findText()` is included to show that it works correctly for either backward or forward searches.","author":{"url":"https://github.com/alankilborn","@type":"Person","name":"alankilborn"},"datePublished":"2024-01-23T16:11:29Z","url":"https://github.com/bruderstein/PythonScript/issues/323"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b3dd9297-c370-de34-0416-590150d375e3
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE802:23AF91:25576EB:30C1D4B:6AF9907A
html-safe-nonce10c8bc344fe8dc4ed6ff9594de295609a5bd88126408b2114289ea43b2df2f8f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODAyOjIzQUY5MToyNTU3NkVCOjMwQzFENEI6NkFGOTkwN0EiLCJ2aXNpdG9yX2lkIjoiODgxNjA5MDE1MDE4NzU0MTcxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac80146a1fbf725a2eec8c36208b9536df3994fd18acdebc35223d6303280b8c89
hovercard-subject-tagissue:2096439400
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bruderstein/PythonScript/323/issue_layout
twitter:imagehttps://opengraph.githubassets.com/928757bdaf6be0813d76a1a1aeadfe5ef1609407c2312ae4e684919b0282c9e9/bruderstein/PythonScript/issues/323
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/928757bdaf6be0813d76a1a1aeadfe5ef1609407c2312ae4e684919b0282c9e9/bruderstein/PythonScript/issues/323
og:image:altUnder PS 3.0.16.0 (and 2.0.0.0 as well), editor.research() and editor.search() won't search backwards, i.e., when the startPosition argument is greater than the endPosition argument. It return no m...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamealankilborn
hostnamegithub.com
expected-hostnamegithub.com
None612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7
turbo-cache-controlno-preview
go-importgithub.com/bruderstein/PythonScript git https://github.com/bruderstein/PythonScript.git
octolytics-dimension-user_id91716
octolytics-dimension-user_loginbruderstein
octolytics-dimension-repository_id795778
octolytics-dimension-repository_nwobruderstein/PythonScript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id795778
octolytics-dimension-repository_network_root_nwobruderstein/PythonScript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release072e34035c13c31543fba9f025cbbbda4210dae4
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/bruderstein/PythonScript/issues/323#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbruderstein%2FPythonScript%2Fissues%2F323
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbruderstein%2FPythonScript%2Fissues%2F323
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=bruderstein%2FPythonScript
Reloadhttps://github.com/bruderstein/PythonScript/issues/323
Reloadhttps://github.com/bruderstein/PythonScript/issues/323
Reloadhttps://github.com/bruderstein/PythonScript/issues/323
brudersteinhttps://github.com/bruderstein
PythonScripthttps://github.com/bruderstein/PythonScript
Codehttps://github.com/bruderstein/PythonScript
Issues75 (75)https://github.com/bruderstein/PythonScript/issues
Pull requests1 (1)https://github.com/bruderstein/PythonScript/pulls
Actionshttps://github.com/bruderstein/PythonScript/actions
Projectshttps://github.com/bruderstein/PythonScript/projects
Wikihttps://github.com/bruderstein/PythonScript/wiki
Security and qualityhttps://github.com/bruderstein/PythonScript/security
Insightshttps://github.com/bruderstein/PythonScript/pulse
https://github.com/bruderstein/PythonScript
New issuehttps://github.com/login?return_to=https://github.com/bruderstein/PythonScript/issues/323
New issuehttps://github.com/login?return_to=https://github.com/bruderstein/PythonScript/issues/323
editor.research() and editor.search() won't search backwardshttps://github.com/bruderstein/PythonScript/issues/323#top
https://github.com/alankilborn
alankilbornhttps://github.com/alankilborn
on Jan 23, 2024https://github.com/bruderstein/PythonScript/issues/323#issue-2096439400
https://github.com/pryrt
pryrthttps://github.com/pryrt
on Jan 23, 2024https://github.com/bruderstein/PythonScript/issues/323#issuecomment-1906451393
this scripthttps://community.notepad-plus-plus.org/post/92263
https://github.com/alankilborn
alankilbornhttps://github.com/alankilborn
on Jan 23, 2024https://github.com/bruderstein/PythonScript/issues/323#issuecomment-1906546027
https://github.com/alankilborn
alankilbornhttps://github.com/alankilborn
on Jan 24, 2024https://github.com/bruderstein/PythonScript/issues/323#issuecomment-1908061522
Sign up for freehttps://github.com/signup?return_to=https://github.com/bruderstein/PythonScript/issues/323
Sign in to commenthttps://github.com/login?return_to=https://github.com/bruderstein/PythonScript/issues/323
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.