Menu

About new features

liyinghui
2004-04-09
2004-04-09
  • liyinghui

    liyinghui - 2004-04-09

    In order to impove the efficiency of typing, I also want DrPython can add some new features. These features have been seen in some other editor, just like Editplus, Vim, and so on.

    1. Abbreviation

    In Editplus, I can add my new abbreviations. If I typed the abbreviation and a blank, the full text representated by the abbreviation will be insert in current position. The full text can be a long word, or multi-line text. These abbreviations can be saved in a separate file. For each file type, you can specify which abbreviations file to be used. So every file type can have a abbreviations file.

    I also think that, the abbreviations can be saved in a database. So the text can be very long. I'v desiged a interface about this. It's simple, and uses sqlite database. If DrPython has abbreviation interface, I can add my implement to it. And I hope the interface is standard, so other people can add his own abbreviation mechanism.

    So this new feature requires that DrPython can receive abbreviations and invokes abbreviation interface to get the full text, then put the text in current position.

    2. Auto complement

    In Vim, if I enter some letter, then press Ctrl+p or Ctrl+n, the Vim will search forward or backward for a word which matches the letters. If it find a word, the word will appear in the current position. If the word isn't what you want , you can still press Ctrl+p or Ctrl+n to search continuely. For example, if you enter 'p', then press Ctrl+p. If you have entered a word "para", the word "para" will appear in current position. This feature will be very helpful.

    My english is poor, could you understand me? Don't worry , what I said is just some advices which I hope DrPython can have.

     
    • Daniel Pozmanter

      Off the top of my head:

      1.  I am not sure what the performance cost would be here, and I am wary of adding another dependency (sqlite).  I will have to toy with this, and will probably look at it after 2.4.0 is out.

      2.  This seems easy enough.  I'd imagine all I'd have to do is add a shorcut, then use the find next function with a regular expression to find the word that matches, and then do a simple replace.  I will add this to the to do list in CVS.

       
    • liyinghui

      liyinghui - 2004-04-09

      En, the first feature that I want is an interface, not a real implementation. You could supply a default implementation, with file format. But once you supply an interface(or plug-in), so I can add my own implementation about it. And every one can add his implementation. That's what I thought. So you don't need see sqlite. Thanks.

       

Log in to post a comment.