Comments (5)
@MCord I tried it and it works. Good idea.
from gitui.
wow you windows people, that is cool stuff!
@alistaircarscadden thanks for taking the time to put this together.
from gitui.
hm couldn't that be done using a *.bat
that does the cd $1 && gitui
? (sorry I a, no good in windows batch)
from gitui.
To create the 'open w/ gitui' option in the context menu in Windows you create an entry in the Registry Editor. There are different registry keys for what appears in the context menu when you click inside a folder vs. when you click on a folder.
When you click inside of a folder, the gitui can be opened with no extra options, as the directory is already correct. See:
However, when you right click on a folder, the system opens the executable given from the current directory and provides the item you clicked on as %1
. You can see how git-bash does it here:
So you gave me a good idea with the batch script. One limitation is that the value in regedit isn't run with a shell, rather just executed as a process, so putting something like pushd %1 && gitui.exe
isn't possible. But, I created a gitui-in.bat that contains...
pushd %1
gitui.exe
and by setting the registry to...
I'm able to get it to work. Anyways, the --cd behaviour is supported by git bash as --cd and by PowerShell as -command Set-Location -literalPath, so I think it would feel a lot less hacky to do it with this tool as well.
from gitui.
another trick that might be useful is to run cmd directly like:
cmd /c "cd /d %1 && gitui"
this way you don't need a batch file.
from gitui.
Related Issues (20)
- Cannot modify line-break HOT 2
- cargo fmt now messes things up on windows
- Better conflicts flow
- Page Up/Down buttons are not scrolling in Status and Files tabs HOT 1
- View combined directory diff / multiple files
- How to focus panes rather than move into them? HOT 2
- File autofocus fails on embed folders HOT 2
- Unable to switch tab using number row HOT 3
- show newer commits if on detached head
- PATH not respected in hooks HOT 6
- Can't fetch/pull on WSL
- listen for SIGINT signal instead of exit key bind HOT 4
- Stashing.FilesToStash window disappears after History/Blame
- add export variable for themes to used HOT 2
- Using rustls instead of openssl? HOT 4
- Syntax highlighting: Typescript files not highlighted HOT 1
- Theme file not loading on macOS HOT 3
- Add syntax highlighting options for commit titles inside the log view
- it always return to 'Status [1]' tab after editing a file from 'Files [3]' tab. any way to change it? HOT 3
- Fail to execute gitui on mac. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gitui.