SteveD | 1 Feb 2008 11:35
Picon

Re: scite newbie question


A small Lua script could do the job:

function insert_date_string()
  editor:ReplaceSel(os.date())
end

Just bind this to F7 using the procedure explained here:

http://lua-users.org/wiki/UsingLuaWithScite

steve d.

On Jan 31, 8:54 pm, "acat... <at> gmail.com" <acat... <at> gmail.com> wrote:
> Hi,
>
> I am very new to scite, but really like it so far.  I have a keyboard
> customization question.
> I'd like to have scite insert the current date and time into a
> document by pressing the F7
> key.  Would someone mind telling me the best way to do this?
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

(Continue reading)

Jascha Wetzel | 1 Feb 2008 12:08
Picon

Re: Plugin loader and patched Extension interface


Neil Hodgson wrote:
>    Did you consider using the director interface?

i didn't use it because it's win32 only, and it didn't seem like a 
straight forward task to port it to gtk for the vastly different IPC 
mechanisms available on the different platforms.
dynamic linking appears to be simpler (don't need to deal with win32 
messaging) and more established on both platforms.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Vladislav Vorobyev | 1 Feb 2008 14:10
Picon

Re: scite newbie question

Or do easy the same thing:

  command.name.<n>.*=Insert date/time
  command.<n>.*=dostring editor:ReplaceSel(os.date())
  command.mode.<n>.*=subsystem:lua,savebefore:no
  command.shortcut.<n>.*=F7

where <n> is a number between 1 and 49 that not used for another menu items


--
With best regards,
Vladislav V. Vorobyev
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Chachereau Nicolas | 1 Feb 2008 20:54
Picon

Re: Plugin loader and patched Extension interface


Jascha Wetzel <jascha <at> mainia.de> wrote:
>i didn't use it because it's win32 only [snip]

Actually, the Director interface is implemented on GTK+
as well. It was in a poor state a few months ago, but
it has been improved by Steve Donovan and myself. The
documentation still needs updating though. You can take
a look at gtk/DirectorExtension.cxx in the source code
and read the comments.

Regards,
Nicolas

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Neil Hodgson | 2 Feb 2008 01:26
Picon

Re: Interesting Bug when invoking IDM_GO from a script


SteveD:

> Yeah, it occured to me afterwards that this would be more consistent
> and easier to implement - it isn't difficult to do the rest in Lua.
>
> But, should this be another Extender method? That seems the
> most elegant approach.

   It should be in Extender. To avoid chewing CPU without need, there
should be needIdle / needTimer flags that are reset before an OnIdle /
OnTimer call and corresponding functions to set these flags and set
the timer period.

   Neil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

FIihelahd | 2 Feb 2008 06:23
Picon

SciTE's inability to drag-and-drop rearrangement of tabs.


Hello,

I've been avoiding SciTE for 2 years now because you cannot drag and
drop tabs to rearrange their order. It makes SciTE unusable for me and
my friends as well. I recently had a discussion about this and was
surprised to find out that the inability to drag and drop tabs is
something which causes people to simply not choose SciTE even though
they're unaware of the problem.

Did you know that SciTE is the only editor in its class which cannot
drag and drop tabs? I've tried what must be 25 editors and SciTE is
literally the *only one* which cannot do it. It's retarded. This is a
standard feature.
It drives me so nuts that I become frustrated and delete SciTE after 1
day, every time.

- Notepad++ can drag and drop tabs
- Code::Blocks can drag and drop tabs
- TextPad can drag and drop tabs
- Programmers Notepad can drag and drop tabs
- ConTEXT can drag and drop tabs
- SlickEdit can drag and drop tabs
- EditPlus can drag and drop tabs
- EditPad Pro can drag and drop tabs
- EmEditor can drag and drop tabs
- UltraEdit can drag and drop tabs
- PSPad can drag and drop tabs
- Vim for windows can drag and drop tabs
- Emacs for windows can drag and drop tabs
- and on and on...

..and 4 are even based on Scintilla.

This is a basic requirement of an editor to be taken seriously.
I keep various files open:

They get completely LOCKED INTO POSITION.
They CAN NEVER BE REARRANGED AGAIN
unless you CLOSE EACH FILE
and PLAN HOW THEY SHOULD BE ARRANGED
and then REOPEN EACH FILE IN THE EXACT ORDER.
It's so ridiculous that SciTE simply cannot be used.

Why is SciTE the only editor which has this problem?
How could this have been overlooked?
It doesn't make sense...

..looking forward to using SciTE someday..
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

mozers | 2 Feb 2008 09:19
Picon

Re: SciTE's inability to drag-and-drop rearrangement of tabs.


Saturday, February 2, 2008, 8:23:08 AM, FIihelahd wrote:

F> you cannot drag and drop tabs to rearrange their order.

You could easily add drag and drop tabs in SciTE.
Just to add to the source code completion [TabsMoving] section
available on http://code.google.com/p/scite-ru/

--

-- 
mozers
<http://scite.ruteam.ru>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

mitchell | 2 Feb 2008 17:05
Picon

Re: SciTE's inability to drag-and-drop rearrangement of tabs.


Hi,

> 
> Did you know that SciTE is the only editor in its class which cannot
> drag and drop tabs? I've tried what must be 25 editors and SciTE is
> literally the *only one* which cannot do it. It's retarded. This is a
> standard feature.
> It drives me so nuts that I become frustrated and delete SciTE after 1
> day, every time.

Well instead of flaming, why don't you contribute something useful? I bet Neil
would accept a well-written patch.

> 
> Why is SciTE the only editor which has this problem?
> How could this have been overlooked?
> It doesn't make sense...
> 
> ..looking forward to using SciTE someday..

You mentioned 25 other editors. Obviously you have choices.

-Mitchell;

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Jascha Wetzel | 2 Feb 2008 19:02
Picon

Re: Plugin loader and patched Extension interface


Chachereau Nicolas wrote:
> Actually, the Director interface is implemented on GTK+
> as well. It was in a poor state a few months ago, but
> it has been improved by Steve Donovan and myself. The
> documentation still needs updating though. You can take
> a look at gtk/DirectorExtension.cxx in the source code
> and read the comments.

ah, i didn't know that. i will consider it once i revisit my scite 
plugin. i will need to add a few GUI elements (a searchable list 
mostly), which isn't possible with any of the extension interfaces atm. 
but if so, would it be possible to do this with the Director interface, too?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Neil Hodgson | 2 Feb 2008 23:21
Picon

Re: Plugin loader and patched Extension interface


Jascha Wetzel:

> ah, i didn't know that. i will consider it once i revisit my scite
> plugin. i will need to add a few GUI elements (a searchable list
> mostly), which isn't possible with any of the extension interfaces atm.
> but if so, would it be possible to do this with the Director interface, too?

   Probably: FilerX uses 'macrolist:' to display a list of macros.

   Neil

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "scite-interest" group.
To post to this group, send email to scite-interest <at> googlegroups.com
To unsubscribe from this group, send email to scite-interest-unsubscribe <at> googlegroups.com
For more options, visit this group at http://groups.google.com/group/scite-interest?hl=en
-~----------~----~----~----~------~----~------~--~---


Gmane