Messages - vixay [ switch to compact view ]

Pages: prev1 2 3 4 5 6 [7] 8 9 10 11 12 ... 28next
31
Coding Snacks / Grid Clicking Script with visualization
« on: November 28, 2009, 05:50 AM »
http://www.autohotkey.com/forum/viewtopic.php?t=51669&start=0&postdays=0&postorder=asc&highlight=

I wanted to share a script I modified here as well. Though I don't know what the etiquette is for cross-forums posting. Should I reproduce the content here or just give a link and drive people to the AHK forums? I think it's better to do both, but if anybody has any suggestions let me know.

see http://www.m2moo.com/program/ahk.html
I got the grid_clicker script from there
I got the GDIP library and samples from http://www.autohotkey.com/forum/viewtopic.php?t=32238&postdays=0&postorder=asc&start=0
I got the Gridmove script from donationcoder.com

Initially I was planning to use Gridmove's method of drawing to the screen, spent some time figuring it out, but it wasn't suitable for drawing diagonal lines.
After I discovered the GDIP library that became easier

Since I had Gridmove I used the read/write ini idea from there.

And voila I have a cool new grid clicking script for all those pesky farming games and such!

http://www.autohotkey.net/~vixay/GridClicker.zip

32
General Software Discussion / Re: Text editor with filtering of lines
« on: November 26, 2009, 03:32 AM »
mwb1100, Thanks! :up: I downloaded and tried it and it works as advertised! Simply brilliant :-*. Now I have to get used to a new text editor... :/
I use PSPad , Notepad2, Notepad++ on a regular basis, not I have to replace one of those with editpad i think.

Though the pro version is demo, and the feature is not available in the light version. Any freeware out there that can do this?

33
General Software Discussion / Re: Text editor with filtering of lines
« on: November 26, 2009, 02:49 AM »
I have gVimPortable installed, and i fired it up, loaded a file, and then i'm lost. Do you have any specific directions?

/edit: found the following after looking through the help files that could help. Any idea on how it would work for say 'fold all lines that don't contain the string popup'
==============================================================================
*28.8* Folding by expression

This is similar to folding by indent, but instead of using the indent of a
line a user function is called to compute the fold level of a line.  You can
use this for text where something in the text indicates which lines belong
together.  An example is an e-mail message where the quoted text is indicated
by a ">" before the line.  To fold these quotes use this: >

:set foldmethod=expr
:set foldexpr=strlen(substitute(substitute(getline(v:lnum),'\\s','',\"g\"),'[^>].*','',''))

You can try it out on this text:

> quoted text he wrote
> quoted text he wrote
> > double quoted text I wrote
> > double quoted text I wrote

Explanation for the 'foldexpr' used in the example (inside out):
   getline(v:lnum) gets the current line
   substitute(...,'\\s','','g') removes all white space from the line
   substitute(...,'[^>].*','','') removes everything after leading '>'s
   strlen(...) counts the length of the string, which
is the number of '>'s found

Note that a backslash must be inserted before every space, double quote and
backslash for the ":set" command.  If this confuses you, do >

:set foldexpr

to check the actual resulting value.  To correct a complicated expression, use
the command-line completion: >

:set foldexpr=<Tab>

Where <Tab> is a real Tab.  Vim will fill in the previous value, which you can
then edit.

When the expression gets more complicated you should put it in a function and
set 'foldexpr' to call that function.

More about folding by expression in the reference manual: |fold-expr|

==============================================================================

34
General Software Discussion / Text editor with filtering of lines
« on: November 26, 2009, 01:05 AM »
This has been driving me nuts.
I need a text editor that can do filtering of lines in view like dopus. If you have ever used dopus you know that you can filter the visible files by typing wildcard masks (e.g. *txt) ...etc

What I want is something similar but for lines in text files, using regex/wildcards/characters. Almost all editors (ultraedit, pspedit, notepad++) have this feature in find and replace, with ability to list output in separate window ...etc but none do it in place.  

This is basically useful for when i need to find certain types of lines in files and edit them. Visually narrowing the file from a bunch of lines to just a few entities that I'm interested in quickly to edit is very appealing and necessary!
Especially for log files, xml files ...etc.

The key difference is I want to have it in-place (i.e. in the editor window itself). The editor can collapse the other lines or hide them from view in another way, I don't care.
Similar to incremental search, but this is incremental filtering.
Similar to Find all, but this is in editor view
 

Does anybody know of  any text editor that can do this? I bet emacs can but I don't know how, I wouldn't mind using that as my default text editor if it did this!

/edit: an editor, not a viewer, I know grep and other viewers exist for filtering lines.

35
Post New Requests Here / Re: IDEA: resize window from centre
« on: November 04, 2009, 10:52 PM »
what you are looking for is NiftyWindows
Already done in AHK. I think you'll find it is very userful.
You can also search for WinManagement AHK script, or GridMove for some other window management programs

Pages: prev1 2 3 4 5 6 [7] 8 9 10 11 12 ... 28next
Go to full version