Title: editor.getUserLineSelection() and editor.getUserCharSelection() should allow other defaults if empty selection · Issue #304 · bruderstein/PythonScript · GitHub
Open Graph Title: editor.getUserLineSelection() and editor.getUserCharSelection() should allow other defaults if empty selection · Issue #304 · bruderstein/PythonScript
X Title: editor.getUserLineSelection() and editor.getUserCharSelection() should allow other defaults if empty selection · Issue #304 · bruderstein/PythonScript
Description: ... because it's not always the case that the whole document is needed if nothing is selected. For example, current line could be considered instead. So I suggest for these functions to instead return same values for startLine, endLine a...
Open Graph Description: ... because it's not always the case that the whole document is needed if nothing is selected. For example, current line could be considered instead. So I suggest for these functions to instead ret...
X Description: ... because it's not always the case that the whole document is needed if nothing is selected. For example, current line could be considered instead. So I suggest for these functions to instead...
Opengraph URL: https://github.com/bruderstein/PythonScript/issues/304
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"editor.getUserLineSelection() and editor.getUserCharSelection() should allow other defaults if empty selection","articleBody":"... because it's not always the case that the whole document is needed if nothing is selected. For example, current line could be considered instead. \r\n\r\nSo I suggest for these functions to instead return same values for ` startLine, endLine` and `startByte, endByte`, corresponding to the current position of the caret. \r\nThen code could decide what to do next. \r\n\r\nEDIT: or, at least, provide an optional 3rd argument, `wholeDocIfEmptySel=True`, boolean.\r\n\r\nThanks. ","author":{"url":"https://github.com/victorel-petrovich","@type":"Person","name":"victorel-petrovich"},"datePublished":"2023-08-16T16:03:39Z","url":"https://github.com/bruderstein/PythonScript/issues/304"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e2706945-7a01-e676-2137-0a496f97e38b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B7B6:327F92:A1EA23:DEC2E3:6AF98EAA |
| html-safe-nonce | 8d6fa094149e29092080f6b407c33692d1939d7625a769cc698b681714fd2276 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCN0I2OjMyN0Y5MjpBMUVBMjM6REVDMkUzOjZBRjk4RUFBIiwidmlzaXRvcl9pZCI6IjQwNzA0MTQ0NTAzNzA5MDc4MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4007f4f4892633daf73ba802e69ffdff118391c6a73e0e1abc9fd784746a0fbf |
| hovercard-subject-tag | issue:1853530646 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bruderstein/PythonScript/304/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4441b75401780cc12edb4a7b715db5f00537bff266eaa1fec3880d7d9a548710/bruderstein/PythonScript/issues/304 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4441b75401780cc12edb4a7b715db5f00537bff266eaa1fec3880d7d9a548710/bruderstein/PythonScript/issues/304 |
| og:image:alt | ... because it's not always the case that the whole document is needed if nothing is selected. For example, current line could be considered instead. So I suggest for these functions to instead ret... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | victorel-petrovich |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/bruderstein/PythonScript git https://github.com/bruderstein/PythonScript.git |
| octolytics-dimension-user_id | 91716 |
| octolytics-dimension-user_login | bruderstein |
| octolytics-dimension-repository_id | 795778 |
| octolytics-dimension-repository_nwo | bruderstein/PythonScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 795778 |
| octolytics-dimension-repository_network_root_nwo | bruderstein/PythonScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width