Gitiles Vscode Extension
Features:
This extension adds a "Gitiles: View file" which opens a gitiles url for the file/line the editor is focused on:
Settings
gitiles.urlTemplate
: Template url to navigate to, use ${domain}
, ${projectName}
, ${file}
, ${line}
, ${branch}
, ${commit}
as variables.
default value:
https://${domain}/plugins/gitiles/${projectName}/+/${ref}/${file}#${line}
Manual installation
Compile the project:
yarn install
yarn package
Copy the project into your vscode extension directory (typically ~/.vscode/extensions
):
cp -R ./* ~/.vscode/extensions/gitiles/
{
inputs = {
gitiles.url = "github:pfgray/gitiles";
};
outputs = { gitiles, ... }: {
homeConfigurations.base = home-manager.lib.homeManagerConfiguration {
modules = [
{
config.programs.vscode = {
extensions = [
gitiles.packages.${system}.vscode-extension
];
};
}
];
};
};
}