Skip to content

Update cursorless reference, help terms and docs #599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Sep 7, 2022

Conversation

Will-Sommers
Copy link
Collaborator

@Will-Sommers Will-Sommers commented Mar 10, 2022

What

Addresses notes in this issue #451. After using it just for a few minutes on my branch, its been really help as it avoids collision with knausj "curse" commands.

Other thoughts:

  • Ultimately would like to make some of the terms configurable but this
    has already helped me trigger the cheatsheet without as any error.
  • Triggering "docs" in .talon looks like a cludge to me

Questions:

  • No idea re: testing this? I tested it locally and it looks good.

Checklist

- Ultimately would like to make some of the terms configurable but this
has already helped me trigger the cheatsheet without as any error.
- Triggering "docs" in .talon looks like a cludge to me
@Will-Sommers Will-Sommers requested a review from pokey as a code owner March 10, 2022 03:22
@pokey
Copy link
Member

pokey commented Jun 8, 2022

I think this PR is still a win, esp if the docs immediately tell you how to use the cheatsheet for those who were expecting old "cursorless help" behaviour

@pokey pokey reopened this Jun 8, 2022
Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me; will want to test locally first if you think it's something that still makes sense

Comment on lines 8 to 14
CURSORLESS_WINDOW_TRIGGER = "(cursorless | cursor list | cursor less)"


@mod.capture(rule=CURSORLESS_WINDOW_TRIGGER)
def cursorless_window_trigger(m) -> str:
"""Term to trigger cursorless help functions in talon"""
return str(m)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not just use a talon list here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would definitely prefer a talon list. Works better with future csv implementation aswell.

@pokey pokey linked an issue Jun 8, 2022 that may be closed by this pull request
5 tasks
@pokey pokey mentioned this pull request Jul 5, 2022
4 tasks
<user.cursorless_window_trigger> reference: user.cursorless_cheat_sheet_toggle()
reference <user.cursorless_window_trigger>: user.cursorless_cheat_sheet_toggle()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need the reverse format for reference. Help is one thing because it needs to be easy to find for beginners. I think that when you reach the level where you use the references you should be able to remember the command.cp

@AndreasArvidsson
Copy link
Member

I think we should probably add these commands to a csv file.

@pokey pokey added this to the 0.27.0 milestone Jul 9, 2022
@pokey
Copy link
Member

pokey commented Aug 17, 2022

this one is waiting on #884

@pokey pokey added the blocked Blocked on something; eg another PR being completed. Look in comments of issue / PR for reason label Aug 17, 2022
Copy link
Member

@pokey pokey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok made some tweaks. Lmk what you think

Comment on lines +28 to +30
app.notify(
'Please first focus an app that supports cursorless, eg say "focus code"'
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like better UX than Talon just refusing to hear them when they say "cursorless cheatsheet" in the wrong place


def cursorless_open_instructions():
"""Open web page with cursorless instructions"""
webbrowser.open(instructions_url)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no reason not to support this everywhere. This way if user first installs Cursorless and says "cursorless help", they'll get the docs no matter what

def cursorless_open_instructions():
"""Open web page with cursorless instructions"""
webbrowser.open(instructions_url)
def cursorless_cheat_sheet_get_json():
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to local function rather than action, per discussion today

@@ -0,0 +1,3 @@
{user.cursorless_homophone} (reference | ref | cheatsheet | cheat sheet): user.cursorless_cheat_sheet_show_html()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make all these active globally, though the cheatsheet just shows a helpful message, per above

@pokey pokey removed the blocked Blocked on something; eg another PR being completed. Look in comments of issue / PR for reason label Sep 7, 2022
@pokey pokey mentioned this pull request Sep 7, 2022
3 tasks
@pokey pokey merged commit 898f51f into cursorless-dev:main Sep 7, 2022
thetomcraig-aya pushed a commit to thetomcraig/cursorless that referenced this pull request Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change cursorless help and cheatsheet commands
3 participants