You can create custom keyboard shortcuts in Cursor that run terminal commands with the current file path by adding a simple tasks.json file to your project. This takes 2 minutes to set up and lets you trigger any CLI tool (like [bundle exec tng -m foo](https://tng.sh/)) with a keyboard shortcut, automatically passing the active file as an argument. But first try our plugin:

Is one click away from generating tests for you

What Is a Cursor Task Shortcut?

A Cursor task shortcut is a keyboard-triggered command that runs terminal commands with access to your current file context. Instead of manually typing bundle exec tng -m foo path/to/file.rb every time, you press a keyboard shortcut…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help