Coder Social home page Coder Social logo

activefileinstatusbar's People

Contributors

roscop avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

activefileinstatusbar's Issues

feat: Relative path format

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

Force display of absolute path when file is outside of opened folder

To avoid this situation:

image

/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"

Is this project still supported/maintained?

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 :)

Long paths are cut off

Really long file paths are not sufficiently visible.

Suggested enhancements:

  • Remove characters from the middle of the path, filling an ellipsis (...) in their place, until the resulting path is able to fit on screen.
  • Any children of the user's home directory can replace the home directory with tilde (~) for brevity.

[Request] Align side

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);

can't copy file path

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

Make it work with vscode-remote

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.

Copy to clipboard doesn't respect fullPath setting

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

Add an option to show the project folder at the start of the file path

Thanks for the extension, it's pretty useful!
I would like to have and option that Instead of showing the full path
image

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,

feat: Allow copy different path

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

How to show File Status along with Git

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.

Trim path if too long

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.

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.