#88 Case Sensitive Search

open
nobody
None
5
2005-02-05
2005-02-05
randr
No

PROBLEM DESCRIPTION

I would like an easier way to select between
case-insensitve and case-sensitive searches.

My default search preference is case-insensitive
(literal). So I can press ctrl-f, type the search
string, hit enter and the search is done. No mouse
action. beautiful.

Many times I want a case sensitive search (but I don't
want to change my search preference because it's less
than 1/2 the time.) So to perform the case-sensitive
search I either (1) use my mouse or (2) perform the
following keystrokes: ctrl-f, type the search string,
tab, right-arrow, space, enter. I'm usually faster
when my hands stay on the keyboard but in this case I
use the mouse because the key sequence is too cumbersome.

MY SUGGESTION

I request that if the search string contains an
upper-case letter and a lower-case letter then nedit
would automatically set the search type to case-sensitive.

For example, a search string of "NEdit" would be a
case-sensitive search but "nedit" and "NEDIT" would be
case insensitive. Of course the radio buttons would
still operate as they do today so the user could
override the default.

Thanks for a great editor.
Happy user for over 3 years. Love the tabs in 5.5!

Discussion

  • Joerg Fischer
    Joerg Fischer
    2005-02-05

    Logged In: YES
    user_id=918104

    This is contained in
    [ 1058246 ] Patch Collection

     
  • randr
    randr
    2005-02-06

    Logged In: YES
    user_id=1205333

    Thanks. Look forward to the patch.

     
  • Thorsten Haude
    Thorsten Haude
    2005-02-06

    Logged In: YES
    user_id=119143

    Please make sure to let me know if you have any problems
    with the patch.

     
  • randr
    randr
    2005-02-06

    Logged In: YES
    user_id=1205333

    Is a compiled binary with the patch available for linux?
    When I "make linux" on the standard 5.5 release (without the
    patch) I get the following link errors. I'm running a
    current version of Taos Linux (which is equivalent to rhel3).

    cc -O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
    -c linkdate.c
    cc -O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
    nedit.o file.o menu.o window.o selection.o search.o undo.o
    shift.o help.o preferences.o tags.o userCmds.o shell.o
    regularExp.o macro.o text.o textSel.o textDisp.o textBuf.o
    textDrag.o server.o highlight.o highlightData.o interpret.o
    parse.o smartIndent.o regexConvert.o rbTree.o windowTitle.o
    calltips.o server_common.o rangeset.o linkdate.o
    ../Microline/XmL/libXmL.a \ ../Xlt/libXlt.a ../util/libNUtil.a -L/usr/X11R6/lib
    -Wl,-Bstatic -lXmu -Wl,-Bdynamic -lXp -lXpm -lXext -lXt -lSM
    -lICE -lX11 -lm -o nedit
    file.o(.text+0x1a4d): In function `PrintString':
    : the use of `tmpnam' is dangerous, better use `mkstemp'
    nedit.o(.text+0xc1): In function `main':
    : undefined reference to `XmRepTypeInstallTearOffModelConverter'
    file.o(.text+0x1c05): In function `PromptForNewFile':
    : undefined reference to `_XmStrings'
    file.o(.text+0x1c12): In function `PromptForNewFile':
    : undefined reference to `XmStringCreateLocalized'

     
  • Thorsten Haude
    Thorsten Haude
    2005-02-06

    Logged In: YES
    user_id=119143

    There are build instructions on
    http://www.nedit.org/build.php. Please let us know if
    anything os unclear or incomplete, so that we can improve it.

    In your case you should make sure to install all necessary
    libraries, ie. X11 and Motif libraries and development
    libraries. I guess Taos offers a search tool for these packages.

     
  • randr
    randr
    2005-02-06

    Logged In: YES
    user_id=1205333

    I must be missing somthing but my setup looks ok (to me).
    Here are my versions of Motif and X11. Any ideas on what
    I'm missing?
    thanks,
    rob

    $ rpm -q openmotif
    openmotif-2.2.3-4.RHEL3.4

    $ rpm -q openmotif-devel
    openmotif-devel-2.2.3-4.RHEL3.4

    $ xterm -v
    XFree86 4.3.99.5(179)

    $ which xterm
    /usr/bin/X11/xterm

    $ gcc -v
    gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-49)

     
  • Thorsten Haude
    Thorsten Haude
    2005-02-06

    Logged In: YES
    user_id=119143

    My bad. If the dev packages are missing, the compiler would
    bitch before the linker has a chance to. I'm have no idea at
    the moment, sorry. Please subscribe to the mailing list at
    http://www.nedit.org/mailman/listinfo/discuss and describe
    your problem there (the compiling, not the Smart Case Search).