Skip to content
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

shell-mode keybindings are missing from leader map #6410

Closed
jpfairbanks opened this issue Jun 23, 2016 · 2 comments
Closed

shell-mode keybindings are missing from leader map #6410

jpfairbanks opened this issue Jun 23, 2016 · 2 comments
Labels
- Mailling list - Enhancement ☺ Key Bindings stale marked as a stale issue/pr (usually by a bot)

Comments

@jpfairbanks
Copy link
Contributor

The following keys are defined in the built in shell-mode.el. Should spacemacs provide them on the keymap SPC m ...? If so where should they go and what are the functions that are necessary?

Is the right way a bunch of lines like (spacemacs/set-leader-keys "mC-c" 'case-statement)?

Shell-script mode defined in `sh-script.el':
Major mode for editing shell scripts.
[...]
The default style of this mode is that of Rosenblatt's Korn shell book.
The syntax of the statements varies with the shell being used.  The
following commands are available, based on the current shell's syntax:

C-c C-c  case statement
C-c C-f  for loop
C-c (    function definition
C-c TAB  if statement
C-c C-l  indexed loop from 1 to n
C-c C-o  while getopts loop
C-c C-r  repeat loop
C-c C-s  select loop
C-c C-u  until loop
C-c C-w  while loop

For sh and rc shells indentation commands are:
C-c ?   Show the variable controlling this line's indentation.
C-c =   Set then variable controlling this line's indentation.
C-c <   Change the indentation variable so this line would indent to the way it currently is.
C-c >  Set the indentation variables so the buffer indents as it currently is indented.


DEL  Delete backward one position, even if it was a tab.
M-e  Go to end of successive commands.
M-a  Go to beginning of successive commands.
C-c :    Set this buffer's shell, and maybe its magic number.
C-M-x    Have optional header and region be executed in a subshell.
@syl20bnr
Copy link
Owner

For the snippets we can put them behind SPC m i ? Actually yasnippet may provide them already so they may be not really useful.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

@github-actions github-actions bot added the stale marked as a stale issue/pr (usually by a bot) label Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
- Mailling list - Enhancement ☺ Key Bindings stale marked as a stale issue/pr (usually by a bot)
Projects
Mailing list
  
Other
Development

No branches or pull requests

3 participants