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

Missing keyboard shortcut: CTRL+D --> Select next occurrences of current selection #630

Closed
blomdahldaniel opened this issue Aug 16, 2022 · 2 comments
Labels
feature: enhancement Request is a enchacement to existing feature

Comments

@blomdahldaniel
Copy link

Hi!

I am a former programmer so I am used to advanced text editors. It is really surprising to me that seems to not be able to do
CTRL+D => "Select next occurrences of current selection"

It is even available in native Power BI dax editor.

Is there something that I've missed? How can I activate this? This is a small thing but also important thing. Makes me not able to use tabular editor in many scenarios. I have to copy the text to a real text editor like visual studio code.

When can we expect actual better text editor features in Tabular Editor 3?

@otykier
Copy link
Collaborator

otykier commented Aug 16, 2022

May I ask what you would use "Select next occurrences of current selection" for, in the context of DAX? If you're looking for a way to rename all instances of a variable, for example, Tabular Editor has a refactor (Ctrl+R) feature - this is much better than simply selecting all identical occurrences, as the refactor feature also takes scope into consideration (you could have two similarly named variables in different scopes).

I guess what constitutes a "real text editor" is a matter of preference. For instance, in Visual Studio, CTRL+D is used to duplicate the current selection. In Notepad++, CTRL+D will duplicate the current line. Tabular Editor uses Scintilla which is the same text editor component used by Notepad++. It does have the ability to "Add next occurrence to selection", but we haven't mapped this command to any keyboard shortcut currently. Here is the list of TE3 text editor shortcuts for reference.

We do have plans to expose all available Scintilla commands as configurable shortcuts - this is targetted for release in Q3/Q4 this year.

When can we expect actual better text editor features in Tabular Editor 3?

Other than "Select next occurrences of current selection", what other features are you missing?

@otykier otykier added the issue: awaiting reply More information is needed label Aug 16, 2022
@otykier
Copy link
Collaborator

otykier commented Dec 23, 2022

Just an update on this. With 3.4.0 it is possible to assign custom keyboard shortcuts, allowing you to use the Editor.MultipleSelectAddEach / Editor.MultipleSelectAddNext commands.

D0BCDEC0-9A93-4B00-A8C3-435C7F25801E

If there are any other code editor features you’re missing, please feel free to open a new issue.

@otykier otykier closed this as completed Dec 23, 2022
@otykier otykier added feature: enhancement Request is a enchacement to existing feature and removed issue: awaiting reply More information is needed labels Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: enhancement Request is a enchacement to existing feature
Development

No branches or pull requests

2 participants