Add `shell-command` keybinding from emacs
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- shell
- Domain
- cli, developer-experience
Research direction
Start by reading the issue’s example using lem:define-command, lem-process:run-process, and lem:define-key, then inspect the existing run-shell behavior and lem-shell-mode:*default-shell-command* mentioned in the report. The report describes the desired M-! command, but does not identify implementation files or tests; determine where command and process behavior are defined before estimating the change. Done means M-! prompts for a command and displays its output without the reported TTY errors.
Written by the indexing model from the issue text.
Description
I find myself missing the M-! binding from emacs to run a shell command. A minimal implementation of this in lem would look like this.
(lem:define-command shell-command (cmd) ((:string "Command to run: "))
(lem-process:run-process
(uiop:split-string cmd)
:output-callback (lambda (str)
(lem:message str))))
(lem:define-key lem:*global-keymap* "M-!" 'shell-command)
I've tried using run-shell, but that doesn't seem to work
0: *shell pid:81579*
warning: No TTY for interactive shell (tcgetpgrp failed)
setpgid: Inappropriate ioctl for device
I also setting lem-shell-mode:*default-shell-command*, to no avail.
- Dominant language
- Common Lisp
- Stars
- 3.1k
- Forks
- 261
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 133
Getting set up
- Ships a 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 lem-project/lem
-
Difficulty 1/5 1-3 hours Newbie friendliness 85/100
lem-project/lem#2525 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
lem-project/lem#2524 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
lem-project/lem#2488 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
lem-project/lem#2369 ·
Maintainers usually reply within 1 day
-
unix-paste-bugOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lem-project/lem#2360 ·
Maintainers usually reply within 1 day
Similar issues
-
GitHub registry install via `gh` credentials rewrites `\u0000`–`\u001f` escapes in source files to `^@`–`^_`Possibly taken @carlosrobert0 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 92/100
Maintainers usually reply within 2 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ajithakdev/claude-desktop-rpm#43 ·
Maintainers usually reply within 1 day