Git Product home page Git Product logo

simple-git-integration-for-scite's Introduction

Simple Git Integration for SciTE

SciTE extension allowing simple Git version control on local files. Based on debjan's SciTE Simple Version Control.

-- Supports Windows only.
-- Currently completely untested with SciTE's sessions feature - might work, might not. Double checking is on the 'TODO' list; as I don't use SciTE very often it probably won't happen unless requested.

Requirements:

This script uses spawner-ex.dll, found in scite-debug.zip at the scite-debug archive.
-- Note: This library is used to prevent cmd windows from popping up every time git.exe is executed, although the extension will work without it if all instances of spawner.popen() in the script are replaced with io.popen().

Installation

First, ensure your config settings are correct; these can be found in the config section at the top of the scipt.

Property Value
Git Absolute path to git.exe (can be left as 'git.exe' if Git has System %PATH% entry).
spawner_path Absolute path to spawner-ex.dll.
tortoise Option to run through Tortoise GUI instead of using console commands.
TortoiseGit Absolute path to TortoiseGitProc.exe (Required if Tortoise GUI option is enabled. Can be left as 'TortoiseGitProc.exe' if Tortoise Git has System %PATH% entry (it does by default))
allow_destroy Make destroy command available; as SciTE doesn't seem to allow confirmation dialogues it's recommended this is kept off.
command_number Free SciTE command number slot; if you don't know what that means then you probably don't need to worry about it.

From the toolbar select Options > Open Lua Startup Script and insert the following line into the file:

dofile("C:\\<path-to>\\SciTE_GIT.lua")

Once the file has been saved the extension should be working.

Use

Open/go to the tab of document you want to add to Git and press the right mouse button. You should see a 'Git' option at the bottom of the context menu:

On selecting that the available commands window will open at the position of your caret:

If the tortoise option in the config section is set to trueall commands with the exception of Destroy will be handled by the Tortoise GUI. Otherwise all commands will be executed using the Windows command line.

When using git.exe all messages are displayed in SciTE's Output window. Git commit messages are entered using SciTE's strip dialogue at the bottom of the SciTE window:

simple-git-integration-for-scite's People

Contributors

chrbrd avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.