Skip to content

Commit

Permalink
Add simple command history analyzer (#2163)
Browse files Browse the repository at this point in the history
<img width="525" alt="image"
src="https://github.com/cursorless-dev/cursorless/assets/755842/fae1bdd3-470a-4c28-b2ef-e47818943b59">


## Checklist

- [ ] I have added
[tests](https://www.cursorless.org/docs/contributing/test-case-recorder/)
- [ ] I have updated the
[docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and
[cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet)
- [ ] I have not broken the cheatsheet

---------

Co-authored-by: Pokey Rule <[email protected]>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored and cursorless-bot committed Feb 1, 2024
1 parent b64ab09 commit ff5d42a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/cursorless.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from talon import Module
from talon import Module, actions

mod = Module()

Expand All @@ -15,3 +15,9 @@ def private_cursorless_show_settings_in_ide():

def private_cursorless_show_sidebar():
"""Show Cursorless-specific settings in ide"""

def private_cursorless_show_command_statistics():
"""Show Cursorless command statistics"""
actions.user.private_cursorless_run_rpc_command_no_wait(
"cursorless.analyzeCommandHistory"
)
3 changes: 3 additions & 0 deletions src/cursorless.talon
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ tag: user.cursorless

bar {user.cursorless_homophone}:
user.private_cursorless_show_sidebar()

{user.cursorless_homophone} stats:
user.private_cursorless_show_command_statistics()

0 comments on commit ff5d42a

Please sign in to comment.