Forum Replies Created
- AuthorPosts
- noespamMember
How about a checkbox in the snippet dialog? The option might be useful for other shells.
BTW, I just ordered a personal license since you are so helpful :) Thank you for keeping EmEditor small, fast, powerful and 64-bit. –mario
noespamMemberYutaka wrote:
For instance, if you want to show the current directory:
`- cmd
DIR ${Dir}
`If you don’t want to parse parameters like ${}, you can use
‘!- filename
stdin
stdin
…
`works :) Here’s an example for those of you who use powershell.
`- powershell –
# prompts for name then echos the hello greeting
$name = “${name}”.ToUpper()
“Hello $name!”
exit
`Note the exit is required. Powershell would not exit automatically. What about an option to chop the last CRLF? Most of the time I want to replace the trigger inline instead of adding a new line. The above code always adds a new line.
noespamMemberSnippets are coming along nicely :)
When I use powershell code for a snippet, the output window waits for a carriage return before inserting the output into text. Try this.
`#cmd powershell dir -name`
The syntax seems limiting. Difficult to put anything but trivial code in a one-liner short of invoking a script file. May I suggest something like the shebang in unix scripts?
#!cmd
code here
and here
…
and here#!ps
code here
and here
…
and herenoespamMemberwill try out the new alpha this weekend and give feedback. thanks so much!
noespamMemberAWESOME! I have been using a combination of EmEditor and another editor with Textmate-like snippets. That other editor never felt like a lightweight text editor. Can we invoke command line utilities and capture STDOUT and STDERR to replace entire buffer or selection? I see RubyScript support, but would prefer to use the ruby + rubygems installed on my system.
noespamMember+1 for textmate like snippets and commands
This is a huge productivity feature. This is the only reason I use that slow, buggy single letter editor for windows.
- AuthorPosts