Forum Replies Created
- AuthorPosts
- blackhawkParticipant
So I just notice a new version which implements the method you mentioned above. THANK YOU!!
That seems to work fine, however, I have noticed one issue: You cannot seem to use CTRL-SHIFT-<ARROW> in multiple cursor mode. Is this a possibility to add this as well? I use this less than the multiple selections feature you added, but it would be nice if all standard cursor movements, selection, and editing were available in multiple cursor mode.
Again, thank you for adding the multiple cursors to find…such a TREMENDOUS time saver. Thank you.
blackhawkParticipantThank you for considering it.
I guess you can do it that way, but why does it need to be restrictive to the selection block anyway? Why can’t it be multiple cursors to begin with?
blackhawkParticipantSo try this:
Assume you have the text:
The fox jumps over the lazy dog
How did the fox do this
Did the fox run or start from standing
How did the fox get near the dogPerform a FindAll on ‘fox’ and then while all occurrences are highlighted, try to put a period at the end of each sentence by hitting <End> and then a period.
How can you do this in emEditor?blackhawkParticipantWhat triggers the snippet is the TRIGGER field in the properties (right-click on the snippet and choose properties). Once the trigger is fully typed, then it will show the snippet.
This is where the problem is. In word complete, you can see multiple matches as you are typing, but with snippets, you must complete the whole trigger first. So, by combining word complete and snippets, you can get something similar.
Yes, it is a pain to enter in all the place holders, but using the XML import and export operations on the snippets (Thanks Yutaka!! :-) ) you can do it via a file, and it goes much faster than through the UI.
In my case, since it is a non-standard language, it has to be done somewhere. And, no doubt, I am probably the first with this language. Ah well.
blackhawkParticipantOh, and I forgot….Set the WordComplete keystroke for the Complete action to TAB in addition to ENTER so that it behaves more like intellisense does.
Hope this helps.
blackhawkParticipantFor those of you who are interested…I have a “workaround” that seems to get close, but is very kludgy at best. Here is what I did and it kind of “works”.
1 – Create a syntax highlighting file with all the keywords you want to have emEditor to know about and color for you.
2 – Create a dictionary file with all the keywords and point your WordComplete plug-in to this dictionary file. This will allow emEditor to show you the functions you want emEditor to display in a drop down as you type.
3 – Create a snippet for each keyword that then fills out the structure of the function.
Seems like a lot of work to go through just to get an intellisense-like feel. It is not perfect, but at least it gets close.
One problem with the Snippets plug-in, is the last parameter gets replaced by a tab instead of positioning the cursor at the end of the snippet, so just add another empty positional parameter and it will take care of it. (Yutaka: Perhaps this can be fixed?)
If someone has some other suggestions, please let me know. This is a little weighty to have to maintain, and I would rather not switch to another editor.
blackhawkParticipantThanks for your quick reply. I am not very successful at finding out how to use Projects, it seems there is limited information.
Does the intellisense functionality work off of the symbols list?
If that is the case, then from what I have read in the help and forums, since this language is not a standard language, I assume that I have to create some kind of symbols list?
How do I create that?
Signed….even more confused…. :-(
blackhawkParticipantI take it then, that I am not confused…this is the way it operates.
So this begs a different question…Is there some other plug-in or method for doing something similar to intellisense?
Intellisense is actually even different than Snippets in that it does not force you to fill in the parameters of a text block. It guides you through the process of filling out the parameters for a function.
There definitely is a place for the current snippets functionality, but I guess what I am getting at, is there also seems to be a place for intellisense-like functionality. I am not convinced, though, that they are one in the same.
Thoughts?
blackhawkParticipantNever mind….I did some registry snooping and found that I must have imported a settings file from an older configuration of my machine.
The path was different.
Sorry for the post.
Perhaps a notification that the folder is invalid would be nice?
blackhawkParticipantSorry, I meant for this to be a reply to one of your posts, and accidentally created a new post.
My appologies.
blackhawkParticipantI think you are on to something here.
Some kind of combination of your previous script and this one, based on whether or not you have a selection(?) perhaps?
I.e. If you have a selection it does a replacement (above script). And if no selection, it pops up a dialog box and prompts you for the number of times to replicate the current line (previous script), replacing the digits. (So long as there are no other digits in the text).
Hmmmmm……
Thanks again for your feedback!
blackhawkParticipantFirst of all:
Thank you for your post!!Interesting approach. The part that is a challenge though is how do we re-number them once it has been numbered? That is where I got stuck.
The other goofy part is that you cannot count on the digits being the same number or in the same location for each line, so you can’t just go down the lines and update the numbers.
Brain burner.
blackhawkParticipantThis is easy to do…..
From the Tools menu, select Customize….
Go to the Window tab and set the option called:
Do not close last document by selecting close command
See if that works for you.
blackhawkParticipantSimply unbelievable???? Don’t you think that is rather harsh? Most editors that I have ever used do not contain a duplicate tab, and what you are saying is standard procedure.
In fact, it takes me less than 5 seconds to do what you are saying. Is it really THAT big of a problem??? :-o
blackhawkParticipantPerhaps a better alternative would be to pump it to a temporary data file and then edit that file rather than keeping an internal buffer.
….just my 2cents worth….which with today’s gas prices is worth about 0.2cents! :-o
April 28, 2008 at 3:02 pm in reply to: AutoComplete plugin – Please make it closer to the "snippet" function in Visual Studio #5718blackhawkParticipantI agree. So long as when you replace the first one, it does all the rest, then moves to the next tag.
Second me on this one!
blackhawkParticipantEw! I was really looking forward to the changes you were making to the snippets.
Well, thanks for at least putting in drag and drop!
blackhawkParticipantWhen is version 8 scheduled for?
blackhawkParticipantIs the Snippet enhancement still being worked on?
blackhawkParticipantHmmmm….very strange…
When I drag the following text in to the snippets window:
{title}
This is some text {Dude}
It shows up in the snippets window as:
{title}
This is some text {Dude}
BUT! If I type the text in the snippet window, it works!
It seems as though the drag and drop is adding the additional backslash.
blackhawkParticipantIt didn’t seem to fill in the parameters. Did I miss something?
You will need to enter parameter values as described in the above screenshots.I never was prompted for any values. I even tried your example, and it did not work either. Should I have uninstalled before installing? It does say version 7.00.3.
Can we apply a name to the snippets rather than use the text?
I am not sure what this means. Can you please clarify this?Sorry for not being clear. Instead of the Snippet showing “//Title : {Title}n” in the Snippet window, it would show “C# Program Header”, or “ASP Comment Block”, “HTML Table Block” etc. Basically be able to name the snippets.
Does this help?
blackhawkParticipantWow! I am impressed! You turned this around pretty quick. This is going to be a fantastic time saver!
Some feedback:
Drag and drop is great!
Drop on top of existing should replace?
It didn’t seem to fill in the parameters. Did I miss something?
Limitation on text string size; can it be larger? 32 or 64K?
Can we apply a name to the snippets rather than use the text?Sample of code I used to test parameters.
#==============================================================================
# {ProcessName}
#
#
# AUTHOR: {Name}
#
blackhawkParticipantVery good suggestions! I would like to augment one of yours slightly:
5) Ability to show find in files results in dockable window, instead of just another tab, thereby allowing user to view results while also viewing a document.
Add to this a keystroke that allows you to go to the next item in the “found” list. Kind of like VS does when you have compiler errors and you can move to the next error.
This is a HUGE timesaver!
blackhawkParticipantAny takers on making the necessary updates???? :-D
- AuthorPosts