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

Feature Request: Dock tabs to left/top/right/bottom command and keybind #27

Closed
j-a-s-o-n-g opened this issue Jan 18, 2023 · 10 comments
Closed

Comments

@j-a-s-o-n-g
Copy link

In the Settings, you're able to dock the tabs in the viewport, but there is no keyboard shortcut or command for it. Can you look into this to see if it's possible?

image

@MohammadMD1383 MohammadMD1383 added help wanted Extra attention is needed Feature Request labels Jan 18, 2023
@MohammadMD1383
Copy link
Owner

Hmm... I can't figure out what exactly you mean.

Could you please describe more? Or even upload a gif to show what you mean?

@j-a-s-o-n-g
Copy link
Author

j-a-s-o-n-g commented Jan 18, 2023

1.) Go to Settings > Editor > General > Editor tabs.
2.) Change tab placement to left.
3.) Apply
4.) Open several files in an editor, you'll see the tabs stack on the left.

Repeat 1-4 but instead of left, choose top.

Request: A "search everything" command as well as a keybind for each of the tab placements to swap them without having to go into settings.

Gif uploaded to first post.

@MohammadMD1383
Copy link
Owner

image

well as you see in the picture this is already possible, I don't know if it works on older IDE versions, but it does work on 2022.3.2 RC

@MohammadMD1383 MohammadMD1383 removed the help wanted Extra attention is needed label Jan 19, 2023
@j-a-s-o-n-g
Copy link
Author

Can we still add key binds?

@MohammadMD1383
Copy link
Owner

This should be possible but I can't assign any shortcut to any action from the Actions Search tab (using ctrl+.). this may be a bug of the IDE ?!

@j-a-s-o-n-g
Copy link
Author

If it is a bug, it's been like that for a while. That's why I was hoping you could wire together a way to with new commands/keybinds.

@MohammadMD1383
Copy link
Owner

ok, I'll try it

@j-a-s-o-n-g
Copy link
Author

j-a-s-o-n-g commented Jan 20, 2023 via email

@MohammadMD1383
Copy link
Owner

to add a macro you need to first select a text and then invoke add selection to macros action.

after that you can assign a shortcut to that macro and use it everywhere in an editor.

predict words is not really good at doing what it is intended to, but it can be useful sometimes. for instance you can write helloworldclass and then invoke predict pascal case words action and hope it will change it to HelloWorldClass.

this actually works by the help of grazie plugin (which detects grammar issues and typos), it tries to find largest words that doesn't have a typo, and then transform them to the desired form.

and for the documentation, I will appreciate your help. actually I was looking for someone to help me do that. Thanks in advance.

@MohammadMD1383
Copy link
Owner

@Keep
@Documentation(
title = "Justify Carets End and Shift Text",
description = "Aligns carets to the rightmost one, and also shifts the text with moved carets",
example = """
| symbol | meaning |
| ------------------- | ------- |
| <code>&#124;</code> | caret |
having:
```java
String s |= "some string";
String someString |= "some another string";
```
will produce:
```java
String s |= "some string";
String someString |= "some another string";
```
"""
)
class JustifyCaretsEndAndShift : JustifyAction(JustifyCaretUtil::justifyCaretsEndWithShifting)

to provide documentation you should use the @Document annotation and use it exactly like you see in the above example because I use regex to extract it.

then by executing docgen.py the new documentation should be added to the docs/ directory, and I'm ready to accept your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants