Recent Posts

Pages: 1 [2] 3 4 ... 10
11
SlickEdit® / Re: Dynamic surround with "if" need to press ESC 2 times
« Last post by Dennis on February 01, 2023, 10:12:19 pm »
This is something we plan on addressing in the next release (v28), maybe 27.0.2, but definitely in v28.  Auto-complete is a bit too reactive right now.  That's helpful, but not always.
12
SlickEdit® / Re: Dynamic surround with "if" need to press ESC 2 times
« Last post by rowbearto on February 01, 2023, 09:16:04 pm »
I think I've seen when I'm in this situation when I do ESC one time to get out of auto-complete and then press down arrow for dynamic surround, I'm back in auto complete and then have to press ESC again to use the dynamic surround down arrow again. It could be useful to not have to do ESC for each time I want to expand the dynamic surround, don't go back to autocomplete after each dynamic surround down?
13
SlickEdit® / Re: Dynamic surround with "if" need to press ESC 2 times
« Last post by rowbearto on February 01, 2023, 08:35:11 pm »
OK I see if I play with the "Subword matching strategy" I can make the tradeoff of speed vs suggestions.

Would there be a way I could bind different keys to different subword matching strategies?

For example use Ctrl+<space> for no subword matching.
And use Ctrl+<something else> for "stone skipping with subword boundaries"

?
14
SlickEdit® / Re: Dynamic surround with "if" need to press ESC 2 times
« Last post by rowbearto on February 01, 2023, 08:28:30 pm »
Looks like I didn't wait long enough, I had clicked elsewhere. It is very slow though and this is a local variable. Would be nice if it was faster.
15
SlickEdit® / Re: Dynamic surround with "if" need to press ESC 2 times
« Last post by rowbearto on February 01, 2023, 08:26:44 pm »
I turned off auto-complete and then I tried to manual auto-complete by doing Ctrl+<space> for a local variable (ctrl+<space> after 'chil' when there is a local 'childPid'. SE froze for a few seconds and I didn't see the autocomplete box with suggestions.

If you can't repro this I will take the time to make a small sample for you.
16
SlickEdit® / Re: Dynamic surround with "if" need to press ESC 2 times
« Last post by Dennis on February 01, 2023, 07:40:54 pm »
Take a look at the functions AutoCompleteGetOptions() and AutoCompleteSetOptions(), you can mask out the AUTO_COMPLETE_ENABLE when you want to temporarily disable it.
17
SlickEdit® / Re: Dynamic surround with "if" need to press ESC 2 times
« Last post by rowbearto on February 01, 2023, 07:33:41 pm »
Thanks Dennis.

Is there a way to turn off the auto-complete from Slick-C code?

Can I turn off the auto-complete for all languages using Slick-C?
18
SlickEdit® / Re: Dynamic surround with "if" need to press ESC 2 times
« Last post by Dennis on February 01, 2023, 07:13:29 pm »
You can disable Auto-Complete by going to Document > C/C++ Options... > Auto-Complete > [  ] Enable auto-completion. (uncheck it)

Ctrl+Space will still work, it just won't pop up the list of completions to try to help you while you are typing an identifier.

The event tables for these features stack, since Auto-Complete comes up after Dynamic Surround in your scenario, it gets control of cursor up/down until it is done.
19
SlickEdit® / Re: Dynamic surround with "if" need to press ESC 2 times
« Last post by rowbearto on February 01, 2023, 06:39:06 pm »
I didn't want it to autocomplete though? I didn't press Ctrl+<space> so why is it trying to auto-complete?

Maybe you need a local variable of threadName first, such as:

Code: [Select]
  const char *threadName;

  if (NULL != threadName)
  {
  }

If you still can't repro with this then I will take some time to try and create a self contained project with my user.cfg.xml that repros it.
20
SlickEdit® / Re: Dynamic surround with "if" need to press ESC 2 times
« Last post by Dennis on February 01, 2023, 06:15:41 pm »
I tried to reproduce this, but could not.  The extra ESC may be necessary to cancel Auto-Complete, which may have came up while you were typing threadName.  First ESC would cancel Auto-Complete, second one would cancel dynamic surround.
Pages: 1 [2] 3 4 ... 10