GithubHelp home page GithubHelp logo

nmlgc / fileswitcher Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 33.05 MB

An import (and slightly cleaned up) copy of the Notepad++ FileSwitcher SVN repository

License: GNU General Public License v2.0

Objective-C 8.52% C 11.49% C++ 65.08% HTML 14.91%

fileswitcher's Introduction

This is the FileSwitcher plugin, allowing you to quickly switch files in Notepad++.

Type any part of the filename, and the list of options shows filenames containing that text. Options to only use the start of the filename, case sensitivity and to include the path of the file rather than just the filename are available in the Options dialog.

How to build

Visual Studio 2012 or later is required, and will compile the code without requiring any further dependencies. You will need to customize a few build properties before compiling, though. To do this without interfering with this Git repository, create a file named LocalSettings.props in the projects\2012 subdirectory, using the following template:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
  </PropertyGroup>
</Project>

Inside the <PropertyGroup> tag, you can set the following:

  • <PlatformToolset>: Necessary for compiling on non-2012 Visual Studio versions. For a list of all platform toolsets available on your system, open the Project Properties dialog (Alt+F7) and refer to the drop-down menu at Configuration Properties โ†’ General โ†’ Platform Toolset.

  • <NPPBinRoot>: Path to your Notepad++ test instance. The plugin DLL will be put into $(NPPBinRoot)\plugins\, and debugging from Visual Studio will start $(NPPBinRoot)\notepad++.exe.

  • <NPPSourceRoot>: If you want to test with your own Notepad++ build that you compiled using its Visual Studio projects, you can set this to the directory or your Notepad++ source tree (the directory that contains the .git, PowerEditor, and scintilla subdirectories). Doing this will automatically set $(NPPBinRoot) to the correct output directory depending on the configuration/platform selected for compiling this plugin, according to the following table:

Win32 x64
ANSI Debug .\PowerEditor\visual.net\ANSI Debug\ .\PowerEditor\visual.net\x64\ANSI Debug\
Unicode Debug .\PowerEditor\visual.net\Unicode Debug\ .\PowerEditor\visual.net\x64\Unicode Debug\
Release .\PowerEditor\bin\ .\PowerEditor\bin64\

For debugging, make sure that you've compiled Notepad++ with the identical configuration/platform combination, which will have put a notepad++.exe into the correct path.

Example templates

Testing with your own Notepad++ builds from a source tree, on Visual Studio 2013 with XP targeting

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <PlatformToolset>v120_xp</PlatformToolset>
    <NPPSourceRoot>C:\path\to\notepad-plus-plus\</NPPSourceRoot>
  </PropertyGroup>
</Project>

Testing with official Notepad++ binaries, on Visual Studio 2015

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <PlatformToolset>v140</PlatformToolset>
    <NPPBinRoot Condition="'$(Platform)'=='Win32'">C:\path\to\32-bit\notepad++\</NPPBinRoot>
    <NPPBinRoot Condition="'$(Platform)'=='x64'">C:\path\to\64-bit\notepad++\</NPPBinRoot>
  </PropertyGroup>
</Project>

fileswitcher's People

Contributors

bruderstein avatar nmlgc avatar olsonpm avatar

Watchers

 avatar  avatar  avatar

fileswitcher's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.