GithubHelp home page GithubHelp logo

vinsworldcom / nppgitscm Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 5.0 1.76 MB

Notepad++ Git SCM

License: GNU General Public License v2.0

C++ 50.51% C 49.49%
notepad-plus-plus notepad-plusplus-plugin

nppgitscm's People

Contributors

vinsworldcom avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

nppgitscm's Issues

Git Panel unusable on on high DPI monitor

Built in panel is unusable on 4K monitor with hi DPI.
Using Notepad++ 8.4.8 64bit on Windows 11 machine.

Buttons are too small & panels overlap

GIT SCM Version 1.4.8.2
git panel

List of files does not refresh after a commit or commit/push with TortoiseGit

I am utilizing Notepad++ 8.4.1 (64-bit) on Windows 10 Pro with all the latest updates installed. I am utilizing release 1.4.7.1 of this plugin.

The Issue

As a user, once I do a commit to my local repo and push the changes to the remote, I expect the docking panel to remove the file(s) in question from the list of modified files. It does not; the entries remain.

To Reproduce

  1. Open a file that is contained in a local Git repo that is associated with a remote, in N++.
  2. Click the Plugins menu, point to GitSCM, and then ensure a check mark is next to the command Git Docking Panel, as shown in Figure 1.
  3. Make sure there is a check mark in the Use TortoiseGit checkbox in the docking panel.
  4. Make a change to the file and save it.
  5. Click the Commit button. TortoiseGit displays a window for you to enter the commit message. If your repository requires it, type a commit message, and then, In TortoiseGit, click the Commit and Push button.
  6. Dismiss the Commit and Push dialog displayed by TortoiseGit once the application has completed the operation.
  7. The file remains listed as "modified" in the docking panel. This is the issue.

image
Figure 1. Opening the Git Docking Panel.

An option to change the diff method

Hi there, command-line diff isn't the best ofc, but line-based ones make you miss the real history of changes out there, so maybe adding an option to make it mark words instead of lines can be more insightful:
git diff --word-diff da10bb0d7a96bfa91d58235e4e86a301518dc54

Not working with space(s) in path

I've been expecting spaces in path/directory and filenames to work for the last twenty years or so.
Assuming this to be some odd bug that only happens with my setup, what info do you need?

Git panel icons are difficult to read in dark mode

Hello,

I'm using nppGitSCM 1.4.8.2 with Notepad++ 8.5.8
Here what the Git panel looks like depending on the mode:

Light mode: ok.

LightMode

Dark mode: difficult to read.

DarkMode

Playing with the tones of the dark mode (black, red, green, blue, purple, cyan and olive) doesn't help.

Note that NP++ icons change according to dark/light mode.
It would be nice if nppGitSCM could do the same thing.

Regards

If git-scm is installed as 'bash only' then status icon fails

Only just started trying the nppGitSCM plug-in. I have my git installed as bash-only, rather than the integrated (mixed) shell system.

If I click the status (three bars) icon I get that the cmd.exe reports "The code execution cannot proceed because libintl-8.dll was not found. ...". (and repeats for the other .dll's). diff, log and blame do the same.

Git gui and gitk work; Git prompt gives the powershell window.

I thought it worth mentioning should it be something that can be detected and resolved.

Commit/push/pull doesn't work

Hey

So I'm having some trouble getting these functions working.

I have read and followed your suggestions in the other issue but i just can't get it working.

If i click the first "git" icon i get the Git GUI open and it seems to work ok from there.

GitK icon returns a grey box with "Cannot find a git directory here".

Git prompt returns the windows powershell in the right directory and if i type "git status" it works fine.

The Pull, Status, Commit, Log and Blame returns "fatal: not a git repository (or any of the parent directories): .git
Press any key to continue . . ."

Add, Unstage and Restore returns a flash of CMD and then nothing happens.

All of this is without TortoiseGit activated (it is installed though).

If i activate TortoiseGit and click Pull, Status, Commit or push it returns "No Working directory found".

Default Directory i set to "Follow current document"

I have tried reinstalling Git and npp but that didn't help.

I hope i have supplied enough info to start out with.

Doesn't work for me

@vinsworldcom I just couldn't get this to work unfortunately. None of the operations (like commit, pull etc) do anything, there's a bit of a flash on the screen and then nothing. SCM is installed and working (integrated fine with several other applications).

Getting fatal: not a git repository (or any of the parent directories): .git

I click on "Status" button in the Docking Panel and I get:
error

Looking at the command line (using Process Explorer) shows:
cmdline

Settings:
setting2

Running the command manually in the correct folder works:
manual

Looks like the work folder of the current file is not set when calling cmd.exe

What can I do to make this work?

Environment
Notepad ++ v 8.1.9.3 (64bit)
Git Version (git is in the path):

C:\>git --version
git version 2.33.0.windows.2

Notepad ++ setting "Follow current document" is configured
setting

Failed could not launch Git. The filename, directory name, or volume syntax label syntax is incorrect.

I installed the latest 64 bit version of Notepad++ version 8.4.7
Also the latest 64 bit .exe installer for Git-SCM version 2.38.1.windows.1

Then whatever I try from within Notepad++ regarding the Git-SCM plugin options
it failes with this error message:

'Failed could not launch Git. The filename, directory name, or volume syntax label syntax is incorrect.'

Tried:
-Checking if Notepad++ and GIT-Scm are the 64 bits versions
-Running the executale 64 bits installer for GIT-SCM
-Running the portable 64 bits installer for GIT-SCM
-Checking if path to GIT-SCM is in the Microsoft Windows environment variable PATH: yes
-Check if using '/' instead of '\' (backslash) in the path
-Setting the settings in 'Settings' in the Notepad Git-SCM menu
-Empty path in the 'Settings'
-Run Notepad++ as administrator
-Put double quotes around the path in gitscm.ini
-Put single quote around the path in gitscm.ini
-Disable temporarily the anti-virus program, then restart Notepad++ and try again
-Checked the Git-SCM plug-in source code to see what was used (e.g. 'cmd')
-Both Notepad++ and Git-scm are installed on a USB drive (with drive letter G:)
-Run dbgview.exe to debug
-Checked https://github.com/vinsworldcom/nppGitSCM about how to install
-Checked #2
-Searched Google for e.g. 'Notepad Plugin The filename, directory name, or volume syntax label syntax is incorrect.'
-Restarted the computer
-Installed the latest update from Microsoft Windows

-Note: Running the commands like

cmd /d/c ""G:\VERSIONCONTROL\GIT\GITSCM\cmd\git-gui" "

from the command line (doing a copy/paste of this line): Yes, then it works and launches the GIT GUI.
=> So it does not work when launched the same command is run out of the Notepad++ menu.

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.