Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Text Editing&Processing > Others

    altfile 0.2a

    Download button

    No screenshots available
    Downloads: 368  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Fair (2.3/5)
    14 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Alex Kunin | More programs
    MIT/X Consortium Lic... / FREE
    May 17th, 2008, 09:29 GMT
    ROOT / Text Editing&Processing / Others

     Read user reviews (0)  Refer to a friend  Subscribe

    altfile description

    altfile is a Vim plugin that provides easy switching between related files.

    altfile is a Vim plugin that provides easy switching between related files.

    Developer comments

    Suppose we have a project which resides in a "proj" directory. Content of that directory might look like this:

    proj/classes/Class1.php
    proj/classes/Class2.php
    proj/classes/Namespace/Class3.php
    proj/tpl/Class1.html
    proj/tpl/Class2.html
    proj/tpl/Namespace/Class3.html
    proj/tests/Class1.phpt
    proj/tests/Class2.phpt
    proj/tests/Namespace/Class3.phpt

    Create "proj/.altfile" and put these lines inside:

    class: classes/{MATCH}.php
    template: tpl/{MATCH}.html
    test: tests/{MATCH}.phpt

    Now load "proj/classes/Class1.php" and hit the hot key. Menu will
    appear:

    class [template] test

    Now you can use it as any other wild menu: cursor keys, , .

    By default previously active item is highilighted. So, to quickly switch between two files all you have to do is .

    Now load "proj/tpl/Class4.html" - it does not exist, and you'll get empty window. Hit , select "class" and hit - VIM will create new buffer for (still non-existing) "proj/classes/Class4.php". Ta-dah! Actually, this is my main reason for creating this plugin.

    Note that it DOES NOT matter what is your current directory: you can cd to whatever place you want. But it DOES matter where ".altfile" is, becase patterns inside it are relative to its placement.

    To show visual file selector hit . Use movement/cursor keys to highlight a file; loads file; switches between labels.

    Requirements:

    · Vim

    What's New in This Release:

    · No more ":drop" (i.e. no more GUI dependency).
    · File load/activation code is smarter now. Uncommented forgotten try...catch block.
    · Removed all inline docs, added link to the project site.



    Product's homepage

      


    TAGS:

    file switcher | related file | Vim plugin | related | file | switcher

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM