On 04/04/09 05:56, Robert R. Melton wrote:
>
> On 4/3/2009 10:49 PM, Tom Porter wrote:
>> [...]
>> We currently have a kludge wrapper that does a head -10000 on the file
>> to a temp file and them lets us look at the results using vim, but in
>> the cases where data being sought is not in the first 10000 records
>> this does not help.  I know a scripter/unix geek approach would be to
>> grep for the desired data in such a large file and look at the
>> results, but many of our users are not so unix savvy, and prefer the
>> simple read-only file browser with arrow key navigation that crisp
>> gives us.
>
> I am a bit startled by this ... your users are currently looking thru
> 10,000+ records using arrow keys?  That would, at first glance seem
> insane.  I fear I must be missing some critical part of the work-flow.
> Does Crisp feature a search interface they are using to do that job that
> grep would do?
>
> I know it is slightly off-topic, but now I am really curious...
>

Not only arrow keys. Don't forget the search capability, and commands 
such as (normal) 1234G or (ex-command) :1234 to go directly to a known 
line number. Also 75% to go to a given percentage of the file's length.

I have one very large file, the Unihan database, a copy of a text file 
from the Unicode site, each line of which includes three tab-separated 
fields, namely, Unicode codepoint, key name (there are quite a number of 
possible keys, and usually several are present on successive lines for 
each codepoint) and key value. You could equate it to as many 
Dictionaries (in the Vim sense) as there are Unified CJK Characters. 
Quite bulky. Well, I never go very far into it with just up-and-down 
arrowing (let's say to different keys for a given codepoint, at most two 
or rarely three screen heights) but I use regexp searching quite a lot, 
either by codepoint or by key+value: for instance, I could search for 
codepoints whose meaning includes the word "big", for characters made 
from Radical 140 "grass" plus five additional strokes, for words which 
can be read er4 in Mandarin or futatsu in Japanese-Kun, and so on and so 
forth.


Best regards,
Tony.
-- 
DENNIS: You can't expect to wield supreme executive power just 'cause some
         watery tart threw a sword at you!
                  "Monty Python and the Holy Grail" PYTHON (MONTY) 
PICTURES LTD

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to