R: help users pick a timezone in `tz` arguments
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- developer-experience, tooling
Research direction
Start by locating Ark's existing language server completion and hover implementations; the issue names no files or tests. Check how they handle function arguments and string literals, then trace coverage for the listed base R and lubridate functions. Done means offering timezone completions for the listed arguments and a hover showing the timezone's offset and current time.
Written by the indexing model from the issue text.
Description
@tylermorganwall built a custom Positron with a little timezone picker for as.POSIXct(): https://bsky.app/profile/tylermw.com/post/3n3m7q6jfic2f
His reason was "when I found myself googling 'timezone strings' for the umpteenth time I suddenly realized that there had to be a better way." same. 💜
There's no API for an extension to draw an arbitrary widget in the editor, so we can't ship exactly that without core work. But I think Ark could get most of the value with two LSP features it already has most of the plumbing for:
- Completions for
tzarguments - A hover on a timezone string that shows its offset and the current time there
Here's a rough mockup of what both might look like:
Functions to cover: as.POSIXct(), as.POSIXlt(), ISOdatetime(), strftime(), Sys.setenv(TZ = ), lubridate's ymd_hms() and friends (tz), and lubridate's with_tz() and force_tz() (tzone).
(Inlay hints showing the offset right after the string would be another option for (2), but Ark doesn't implement inlay hints yet, so hover seems like the easier start.)
- Dominant language
- TypeScript
- Stars
- 4.4k
- Forks
- 207
- Avg merge
- 1d 16h
- Merged PRs (30d)
- 308
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/positron
-
area: assistant area: ui
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
accessibility area: plots area: ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area: plots area: ui bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
area: kernels lang: r
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
posit-dev/positron#17575 · 2 comments ·
Maintainers usually reply within 1 day
-
Memory meter counts page cache as used memory under a cgroup limitPossibly taken @jmcphers claimed this 10 days ago. Openarea: workbench bug memory-use support
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
posit-dev/positron#17414 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in posit-dev/positron
Similar issues
-
triage
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
novuhq/novu#13613 · 2 comments ·
Maintainers usually reply within 1 day
-
enhancement from-app needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
nightly-labs/openbot#23943 ·
Maintainers usually reply within 1 day
-
comp/desktop desktop/chat P3 type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
NousResearch/hermes-agent#164451 ·
Maintainers usually reply within 1 day
-
shortkeys-2188:ready
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
crittermike/shortkeys#1121 · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Doist/todoist-cli#742 ·