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

Double clicking after a open curly brace should select the block #3387

Closed
ffissore opened this issue Jun 21, 2015 · 7 comments
Closed

Double clicking after a open curly brace should select the block #3387

ffissore opened this issue Jun 21, 2015 · 7 comments
Assignees
Labels
Component: IDE user interface The Arduino IDE's user interface feature request A request to make an enhancement (not a bug fix)

Comments

@ffissore
Copy link
Contributor

This happened with the previous editor and it's not happening anymore with the new one. Try to reimplement it and report back at http://forum.arduino.cc/index.php?topic=330772

@ffissore ffissore added the Component: IDE user interface The Arduino IDE's user interface label Jun 21, 2015
@ffissore ffissore added this to the Release 1.6.6 milestone Jun 21, 2015
@ffissore ffissore self-assigned this Jun 21, 2015
@ffissore
Copy link
Contributor Author

Also see upstream bobbylight/RSyntaxTextArea#90

@ffissore ffissore changed the title Double clicking after a open curly braces should select the block Double clicking after a open curly brace should select the block Jun 22, 2015
@ffissore ffissore added the Upstream notified Related to a software component maintained by someone else. They have been notified of it label Jun 23, 2015
@ffissore ffissore removed this from the Release 1.6.6 milestone Jun 23, 2015
@ffissore ffissore added the feature request A request to make an enhancement (not a bug fix) label Jun 25, 2015
@ghost
Copy link

ghost commented Aug 22, 2015

There's some sort of animation happening in parentheses pairs on 1.6.5 - for every character I type while the cursor is between the parentheses, the highlight on one end blinks. I can tolerate that when I move the cursor in, but not on every typed character.

If this is intentional, can I turn it off please ?

Same goes for every automated function or syntax colouring. I absolutely appreciate some people love them : for the rest of us, please give a way to turn it off.

And github, please get rid of that popup that happens when I type a colon. Or a commercial-at. Just let the keys do what the keytops say.

@Chris--A
Copy link
Contributor

I agree, the animation is quite distracting and should be prevented, or only show the final result (no animation while typing). I could see a quick fix as adding a delay before it it shown (hidden straight away on type) then it should effectively be invisible until the last character is typed (if the user types above a certain minimum speed). If I can find the particular section in RSTextArea, I'll give it a try.

I think your're underestimating the people "for highlighting" as a minority. Syntax highlighting is an invaluable feature. For sure, I think the colors are too flat, there is not enough contrast between key aspects like comments which should stand out, not blend into the white background. Regardless however, un-highlighted syntax is terrible when working on large/complicated sources.

@ffissore
Copy link
Contributor Author

@artag your comment must go into a separate issue: it's off topic with this one. Also, if you really want github to hear you, write them, not on Arduino repo :)

@nickgammon
Copy link

@ffissore - I agree it is off-topic, however it appears to be referring to the Arduino IDE.

http://forum.arduino.cc/index.php?topic=353730

I'll open a new issue for it.

#3991

@per1234
Copy link
Collaborator

per1234 commented Jul 1, 2017

It turns out that bobbylight/RSyntaxTextArea#90 is unrelated to this issue. In that issue "Block Selection" has a completely different meaning (see http://fifesoft.com/blog/?p=291). To be more clear, this is how "Block Selection" looks in Notepad++ (where it is known as "Column Mode Select"):


clipboard01


versus standard select:

clipboard02

@per1234 per1234 removed the Upstream notified Related to a software component maintained by someone else. They have been notified of it label Jul 1, 2017
@per1234 per1234 self-assigned this Jul 27, 2023
@per1234
Copy link
Collaborator

per1234 commented Jul 27, 2023

Closing as resolved because the equivalent capability is available in Arduino IDE 2.x via the "Select to Bracket" command.

There is no keyboard shortcut associate with the command by default (meaning it is only available from the "Command Palette" menu), but you can assign your own custom shortcut:

  1. Select File > Advanced > Keyboard Shortcuts from the Arduino IDE menus.
    The "Keyboard Shortcuts" tab will open in the Arduino IDE window.
  2. Type Select to Bracket in the "Search keybindings" field of the "Keyboard Shortcuts" tab.
  3. Hover the mouse pointer over the "Select to Bracket" row in the search results.
    A pencil icon ("Edit Keybinding") will appear at the left side of the row.
  4. Click the pencil icon.
    The "Edit Keybinding for ___" dialog will open.
  5. The input field in the dialog contains a text representation of the keyboard shortcut. Adjust this according to your preferences.
    Notes about the syntax:
    • For most keys you can simply use the name of the key (i.e., a, 3, /, f2).
    • Special key names:
      • cmd - Command key () on macOS.
      • ctrlcmd - Ctrl key on Linux/Windows, Command key () on macOS.
    • Use the + separator for key combinations (e.g., ctrl+s).
    • Use a space separator for key sequences (AKA "chords") (e.g., ctrl+k ctrl+i).
  6. Click the "OK" button in the dialog.
  7. Click the X icon on the "Keyboard Shortcuts" tab.

@per1234 per1234 closed this as completed Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE user interface The Arduino IDE's user interface feature request A request to make an enhancement (not a bug fix)
Projects
None yet
Development

No branches or pull requests

4 participants