Author Topic: Alias Anomalies  (Read 5438 times)

TxDot

  • Community Member
  • Posts: 38
  • Hero Points: 0
Alias Anomalies
« on: June 14, 2007, 01:11:10 PM »
I have defined several aliases that don't expand correctly with CTRL+space. Instead of expanding to the correct alias it expands to a word. For example; I have defined an alias named tre but when I press CTRL+space it expands to the word TREENODE. Even if I wait until SE recognizes it's an alias (lightbulb in the left margin) before pressing CTRL+sp it still expands to TREENODE. If I use the down arrow to select the alias in the popup window it will expand correctly. I have another alias named class which expands to CLASS_E_. I created another alias called newclass and it works correctly. Any ideas?

AllenR

  • Community Member
  • Posts: 11
  • Hero Points: 0
Re: Alias Anomalies
« Reply #1 on: June 14, 2007, 07:40:32 PM »
In my limited experience with aliases you have to be careful naming them something that can be expanded to a symbol/keyword in the language you are working in or VSE command.  I know you would think the CTRL+space would search only aliases but that is not my experience. 

I usually rename my alias or add some character to the end to make it different from whatever it is conflicting with.

Good luck, Allen.

TxDot

  • Community Member
  • Posts: 38
  • Hero Points: 0
Re: Alias Anomalies
« Reply #2 on: June 14, 2007, 09:51:36 PM »
Funny thing. I just noticed that these aliases do expand correctly simply by pressing the space bar. CTRL+space doesn't work correctly but space only does. Actually I like that better! Now if I could only figure out how to invoke Dynamic Surround from an alias I would be all set (at least for now ;D)

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Alias Anomalies
« Reply #3 on: June 15, 2007, 12:43:21 PM »
I know %\m sur_text% is where the surround text would get inserted, and invokes dynamic surround.   Many of the default surround with aliases are set using that.