Post reply

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
Name:
Email:
Subject:
Message icon:

Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
What is the last letter in the word "SlickEdit":
How many LETTERS are in the following? "a1b2c3":
Which number is missing?  "12345689":

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: ewjax
« on: September 10, 2006, 06:32:23 PM »

HS2, nice changes, thanks!
Posted by: hs2
« on: August 28, 2006, 07:51:18 PM »

The menus are also Slick-C code - really cool ... (have look into config\vusrs11f.e -> Slickv11)
However, I'd propose to share such things per source.
Maybe one writes a macro which (re-)loads e.g. all '*.e' files from a server share.
There are more possibilties but it's not that easy to avoid messing up things ...
And if a Slick update kicks in it's anyway better to check your macros if they are still working (mosty they do).

HS2
Posted by: aoehlke
« on: August 28, 2006, 07:08:48 PM »

very cool... it works well. karma to you.

now the global env thing sounds intruiging... since I just sent out an email to 10 developers on how to add this to their set of commands (ie import the macro) as well as how to add it to the select menu.

Granted, people will always want their own customizations as well.  Is it possible to have a global env file, and then have per user settings override anything that may be specified in both?  and if the block comment macro can be imported into the global file, can the changes to the select menu also propogate to all users?

maybe I am asking for too much :)
Posted by: hs2
« on: August 28, 2006, 07:05:39 PM »

They are stored (compiled version) in the vslick.sta file which resides in the 'config' directory.
Default for this dir is per user (HOME) but you may setup a (system wide) VSLICKCONFIG env. var to e.g. use a global dir or another per user dir ...
BTW: There is s.th. to read in the help...

Loaded macros are 'Slick global'.
You may setup some project specifc things in 'Project->Project Properties -> Open Tab' where you can add e.g. a bunch of Slick macros doing a complete reconfiguration of Slick ;)

HS2
Posted by: aoehlke
« on: August 28, 2006, 06:29:22 PM »

will try this... thanks.

next question is, where are the currently loaded macros stored? are they ona project by project basis?
or is it that once they are loaded, they remain that way in a per user config file setting?

Posted by: hs2
« on: August 28, 2006, 06:28:47 PM »

There are 2 options:
1. not-so-good option: activate cmdline and type BlockComment and press <ENTER> ... clumsy, right ?
2. better: 'Tools->Options->Key Bindings' -> choose BlockComment in the list of available macros ('Commands' list ) and after that do 'Add Key or MouseClick' and hit the key combination you want.
If it's already in use Slick tells that. You may repeate the procedure using another shortcut or you may override the former binding by just doing a heedless 'Bind'.

Hope it's a bit clearer now.
You'll see that there are a lot of useful commands not bound to a shortcut and there are a lot of shortcuts not bound to commands.
That's the key to get even more editing power out of Slick ...

HS2
Posted by: Wanderer
« on: August 28, 2006, 06:25:21 PM »

how do I see the option to block comment something?
I have selected a bunch of text with my mouse... but I dont know how to activate the block comment.
shouldnt there be a menu option somewhere?


For Windows
--  Select some text
--  Activate SlickEdit's command line, type BlockC<tab>, and the command name is completed.
--  Press <enter>

Binding the command to a key is done through Tools->Options->Key Bindings...
The main menu can be edited via Macro->Menus.  For the right-mouse-button context menu, there is an "Edit them menu" item on the context menu.
Posted by: aoehlke
« on: August 28, 2006, 06:12:14 PM »

Hmm, anyone help a newbie?

I have copied this macro into my /home directory/.slickedit in unix.
I then loaded the module.

now what?
how do I see the option to block comment something?
I have selected a bunch of text with my mouse... but I dont know how to activate the block comment.
shouldnt there be a menu option somewhere?

I have a whole bunch of other macros I'd like to start using... but I figured this one would make a good guinea pig.
Posted by: jaykay
« on: August 02, 2006, 08:26:09 AM »

Hello HS2,

thanks for the modification of the macro :-)
Also thanks to Elliott who wrote the original version of the macro.
Now everything works fine.

Thanks again.

jaykay
Posted by: Lee
« on: August 01, 2006, 01:14:10 PM »

'select-block' is the command to begin/end a block selection.  The default key binding for block selection is Ctrl+B in Visual C++ 6 emulation.  If you have changed the binding for that key, you can bind a another one to that command.
Posted by: hs2
« on: August 01, 2006, 10:35:27 AM »

Try this changed (thanks Elliott) version with relaxed selection requirement.
Automagically changes existing (e.g. cua-) selection to a line selection and works on current line, if nothing selected.
The extension checking part uses some clearer reg-exp.s (2 more comment types added).
Last the status line (+beep) is used for telling a problem instead of pop-up.

HS2
Posted by: jaykay
« on: August 01, 2006, 09:23:25 AM »

I did not know, that there are so many different selection modes.

Anyway, I found the way to do a line-select using the keyboard (Ctrl+F8 in Visual C++ 6 emulation mode, "Alt+L" in SlickEdit mode). This does a line-select as required by the comment/uncomment macro. That's OK for me at the moment although it would be nice to get the comment/uncomment macro work with the cua-select mode.

jaykay
Posted by: jbezem
« on: August 01, 2006, 08:05:22 AM »

Well, I use the SlickEdit mode, being an SE user for almost 15 years, so I couln't tell.
But a simple try should tell you all you need to know. But: The macro only does something when the selection is a line selection, so the keyboard shortcut for a block selection as requested in your post will not help you much there.

HTH,

Johan
Posted by: jaykay
« on: August 01, 2006, 06:35:41 AM »

Hello Johan,

Thanks for the response.
I use the Visual C++ 6 emulation. Using this emulation mode, the keys "shift+up", "shift+down", "shift+right" and "shift+left" are bound to the command "cua-select".
Needs the comment/uncomment macro be modified in order to work with my cua-select mode ?

Regards

jaykay
Posted by: jbezem
« on: July 31, 2006, 10:20:23 AM »

I don't know the emulation you're using, but if you bind the command "select_block" to a key of your choosing, you should be prepared pretty well.

HTH,

Johan