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

Brainstorming keyboard shortcuts conveniences #76

Open
LinqLover opened this issue Jan 5, 2022 · 3 comments
Open

Brainstorming keyboard shortcuts conveniences #76

LinqLover opened this issue Jan 5, 2022 · 3 comments

Comments

@LinqLover
Copy link
Collaborator

LinqLover commented Jan 5, 2022

  • Handle Cmd + Home and Cmd + End

  • Cmd + N: Browse senders of binding

  • #( should create literal array rather than symbol

  • insert block content after last block argument (currently inserts a new block arg instead):
    image

  • cannot insert a valid selector string inside the declaration of an empty st method

  • delete at the beginning of a block could remove the outer block, e.g., a return caret:
    image

  • pressing [ at the end of a selector should wrap the empty argument into a block (not the receiver of the message):
    image

  • Cmd + Shift + 🔼/🔽 to swap statements?

  • Space at the end of a method signature's argument could insert a new argument

    image

@tom95
Copy link
Collaborator

tom95 commented Jan 5, 2022

What would the expected function be? Select start/end? This function is currently available via PgDown/Up and could be aliased, as the shortcut is still free. PR would be welcome if this is desired functionality :)

@LinqLover
Copy link
Collaborator Author

Either that, or end of the current line/statement block?

@tom95
Copy link
Collaborator

tom95 commented Jan 6, 2022

Start/end of statement is already mapped to Home/End. I would actually prefer it to have some concept of line though, I just haven't figured out a good way to make that work (e.g. in long conditional expression you often have a single return statement that's appear to wrap over what would be 4-5 lines in a text editor).

If we figure this out, maybe we could map Cmd+Home/End to statements and just Home/End to lines.

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

No branches or pull requests

2 participants