roscop / activefileinstatusbar Goto Github PK
View Code? Open in Web Editor NEWVisual Studio Code extension showing currently active file in the status bar.
License: MIT License
Visual Studio Code extension showing currently active file in the status bar.
License: MIT License
It is nice, when you have project directory in relative path, e.g. my-project/foo/bar.js
, but most of the time you are interested in path relative to project root, without including root dir name, e.g. foo/bar.js
.
I propose to implement option, that will control whether user wants project's root name in relative path.
I can implement this settings, if the PR will be accepted
To avoid this situation:
/home/daniel/.config/Code - Insiders/User/settings.json
would be much easier to understand in this situation.
Perhaps it could be another option?
"ActiveFileInStatusBar.fullpath": "always"
"ActiveFileInStatusBar.fullpath": "inopenfolder"
"ActiveFileInStatusBar.fullpath": "never"
Dependencies are outdate and they have security vulnerabilities.
Take a look at this:
npm i
npm WARN deprecated [email protected]: This package is deprecated in favor of @types/vscode and vscode-test. For more information please read: https://code.visualstudio.com/updates/v1_36#_splitting-vscode-package-into-typesvscode-and-vscodetest
npm WARN deprecated [email protected]: Jade has been renamed to pug, please install the latest version of pug instead of jade
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Legacy versions of mkdirp are no longer supported. Please update to mkdirp 1.x. (Note that the API surface has changed to use Promises in 1.x.)
npm WARN deprecated [email protected]: to-iso-string has been deprecated, use @segment/to-iso-string instead.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: this library is no longer supported
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No license field.
added 334 packages from 498 contributors and audited 334 packages in 9.955s
22 packages are looking for funding
run `npm fund` for details
found 7 vulnerabilities (3 low, 1 moderate, 2 high, 1 critical)
run `npm audit fix` to fix them, or `npm audit` for details
Some vulnerabilities are critical:
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Critical │ Command Injection │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ growl │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ >=1.10.2 │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ vscode [dev] │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ vscode > mocha > growl │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/146 │
└───────────────┴──────────────────────────────────────────────────────────────┘
┌───────────────┬──────────────────────────────────────────────────────────────┐
│ Moderate │ Tmp files readable by other users │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Package │ sync-exec │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Patched in │ No patch available │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Dependency of │ copy-paste │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ Path │ copy-paste > sync-exec │
├───────────────┼──────────────────────────────────────────────────────────────┤
│ More info │ https://npmjs.com/advisories/310 │
└───────────────┴──────────────────────────────────────────────────────────────┘
Users of this package are in trouble. It would be great if you update the vulnerabilities and publish the update :) Thanks for the package :)
Please consider publishing this extension to: https://open-vsx.org/
So that users of VSCodium can use it too.
just like title.
Really long file paths are not sufficiently visible.
Suggested enhancements:
Please, provide a setting to choose left/right align in the status bar when its enabled.
Its default hardcoded to left side
vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Left, -1);
When clicking on a file, the full path shows correctly, like the gif works, but can't copy, even it shows copy to clipboard
when hover
Its more like a feature requerst, is there any way it could work with files opened with remove extension? I tried disabling full path and revealing in filesystem, but it made no progress.
Hi Ralph,
This is a very nice extension. I started using it and it's just simple and straight to the point.
I just want to raise a little issue: the path of the last opened file is still shown in the status bar even if there is no active editor / file open.
Thanks.
Hi, first thanks for this extension
When I set "ActiveFileInStatusBar.fullpath": false
, the extension shows the relatitve path, but when I click the copy icon it copies the full path into the clipboard. I expect to copy the relative path as well.
Thanks
Thanks for the extension, it's pretty useful!
I would like to have and option that Instead of showing the full path
Show just the path within the project folder, like this:
Proyecto 2/perfil_proveedor.php
To save some space in the status bar o sometimes you just care about the path within the project,
In Atom's nuclide (or may be this is Atom's core feature) the corresponding extension has two modes. If you click
- you'll copy full path, if you shift+click
- you'll copy relative path.
I think this feature may be useful for this extension too.
I can submit a PR if it will be accepted
Hi,
I'm using the recent latest version which 1.21.1. When a file is not version-controled, the File Path shown in Status Bar, but when it is version-controlled, the Git Status take precedence.
Could you help for which setting I can apply, to see both Git Status and File Path. Thanks.
You can hook up to the onDidChangeConfiguration
event and then update the config immediately. That way the change happens immediately and doesn't require a file open or window reload. See https://code.visualstudio.com/Docs/extensionAPI/vscode-api#_workspace
If the length of the path exceeds a limit, the path should be trimmed and ellipses should be appended to the end of the string. It should display the full path using a tooltip when this happens.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.