Giter Site home page Giter Site logo

grandchris / terminalrelativepath Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 2.12 MB

Enables you to click relative paths, starting at the './build' directory, inside the integrated terminal.

License: MIT License

TypeScript 96.92% PowerShell 3.08%
vscode vscode-extension integrated-terminal terminal relative-paths build gcc ninja cmake

terminalrelativepath's Introduction

Just let me click this freaking paths

Enables you to click relative paths, starting at the './build' directory, inside the integrated terminal.

https://github.com/GrandChris/TerminalRelativePath

Background

When you use CMake and Ninja with GCC you get relative paths starting at the './build' directory. You can specify the path for the Problem Matcher of your VSCode task, but this does not influence the behavior of the integrated terminal.
An option would be to use absolute paths, but there is no option for it, weather in CMake, nor in Ninja nor in GCC. Besides using absolute paths with Ninja breaks custom CMake header dependencies (2020-11-15) (for example a generated header file is dependent on a .json file).
To be able to still click the relative paths in the integrated terminal, this extension is born.

Demo

Demo

Obsoletion

This extension became obsolete with https://gitlab.kitware.com/cmake/cmake/-/merge_requests/6148. The new recommended way to fix this issue is to update to CMake > 3.21.0.

terminalrelativepath's People

Contributors

grandchris avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

terminalrelativepath's Issues

"Unable to open ...: Unable to read file.

Hi,

This is useful extension, thanks :)

I've found an issue, which is annoying. File is actually being opened properly when I click relative filepath, but pop up is showing up complaining that file does not exists...

Like this:
image

Do you have any idea why this is happening?

Regards

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.