Giter Club home page Giter Club logo

vscode-pin-up's Introduction


logo

📌 Pin Up

An VSCode extension that allows you to pin up some frequently opened files

Basic Usage

There are some description images under this section that may be slow to loaded.

First, right click the files in the Explorer of the VSCode, then click the 📌 Pin Up in the popped up context menu.

Second, find the pinned files in the Activity Bar View or Explorer View. If you can not see a view with the title of 📌 PINNED FILES, right click the Activity Bar or Explorer View Title Context and check the 📌 PINNED FILES.

vscode-pin-up's People

Contributors

b2kdaman avatar dependabot[bot] avatar saekiraku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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

vscode-pin-up's Issues

Cursor position jumps when selecting text

Type: Bug

When selecting text in a file the cursor jumps around or causes in the selected text to be dragged.

Extension version: 1.4.1
VS Code version: Code 1.83.1 (f1b07bd25dfad64b0167beb15359ae573aecd2cc, 2023-10-10T23:46:55.789Z)
OS version: Darwin x64 22.6.0
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 x 3600)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) 8, 7, 5
Memory (System) 128.00GB (33.24GB free)
Process Argv . --crash-reporter-id 41f962b9-1e13-4cd6-8def-45e0e8ffba85
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593cf:30376535
pythonvs932:30410667
py29gd2263:30856252
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
282f8724:30602487
f6dab269:30613381
2i9eh265:30646982
showlangstatbar:30737416
962ge761:30841074
03d35959:30757346
pythonfmttext:30731395
fixshowwlkth:30771522
showindicator:30805244
pythongtdpath:30769146
i26e3531:30792625
pythonnosmt12:30797651
pythonidxpt:30805730
pythonnoceb:30805159
copilotsettingt:30859503
asynctok:30821568
dsvsc013:30795093
dsvsc014:30804076
diffeditorv1:30821571
dsvsc015:30845448
pythonregdiagcf:30859692

[Feature Request] Allow relative file paths and/or vscode variables.

It would be nice if you can move the project folder around and not have the paths break. Another use case would be that you will be able to commit the pinned-files.json to a repo and check it out in a different environment. Support for variables like ${workspaceFolder} would also be quite useful if you work with multi-root workspaces.

[Bug] Symlink folders being read as a file rather than a folder (making them impossible to open/expand in the pinned files panel)

Demonstration of the issue:

gi2O6tEIOQ.mp4

Everything in my "development shortcuts" directory are symlinks, 2 files and one folder. As you can see in the beginning of the video, when pinning the folder directory it seems to work like expected, but if the pinned folder contains symlink folders, tose symlink folders will be attempted to be read as a file rather than a folder - causing some error displayed at the bottom right.

Feature request: ability to access regular context menu options

First of all, thank you for your great job! :)

I, however, often need to copy/paste files from one project to another, but we have very reduced context menu options for the pinned files:

image

Can we perhaps also include the options from the regular explorer's context menu? e.g.:

image

command 'pin-up.add-pin-outside' and 'pin-up.clear-pin' not found

Installed the extension and getting following command pin-up.add-pin-outside and pin-up.clear-pin not found errors

pinup_error

vscode info:
Version: 1.61.2
Commit: 6cba118ac49a1b88332f312a8f67186f7f3c1643
Date: 2021-10-19T14:58:13.605Z
Electron: 13.5.1
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Linux x64 5.4.0-89-generic

Extension Info:
Released on: 18/04/2020, 13:41:42
Last updated: 24/02/2021, 10:39:59
Identifier: saekiraku.pin-up

Feature request: show folders before files

It would be nice if the ordering inside a pinned folder was the same as in the explorer view: folders first in alphabetical order, then files in alphabetical order.
Nice extension btw :)

Double clicking a pinned file doesn't open it permanently

In the normal file explorer, double clicking a file will open it permanently in the editor pane.

If you double click a file in the pin up explorer and then click another file, then the first file is replaced by the second in the explorer pane.

FR: Confirmation window when deleting a pin

Hi,

Great extension, especially that you can add folders outside the current project.

Could you add an option for having a confirmation window Are you sure you want to delete this pin? when clicking the delete button?

Ioan

Delete pin always deletes last pin on list

Hi,

I just can' t delete pin in the middle of the list. Before i'm clicking Trash Icon or selecting option from context menu, i have selected other than last row in pins list ... only last item is removed and not that one i have selected.

Cancel button on remove pin icon removes the pin

When we click on remove pin icon. A dialogue appears for remove pin confirmation. The dialogue contain three buttons Yes, No & Cancel. First of all there is no need for cancel button. And second clicking on cancel removes the pin. Which is completely unexpected.

IMG-20210204-WA0012

How to update the extension with custom modification?

Hello. Thank you for the great extension. It really helped me in my work.

I pinned folders but these folders seem could not refresh upon file created / deleted. For example, I pinned the "Controllers" folder. Then when I created a file "PostController.php" under "Controller", The pinned "Controller" folder will not show the created "PostController.php".

I saw there is a pull request regarding about this.
#32

I tried to edit the extension file according to the solution in pull request but nothing changes. Could you please let me know how to apply those changes? These is the step how I try:

  1. Navigate to .vscode\extensions\saekiraku.pin-up-1.4.1
  2. Check every file modification in 93a3aed
  3. Modify the files by adding those row difference in green color
  4. Restart VS code

It seems nothing has been changed after restarting. No "refresh icon svg" showing up next to the delete button. Does it related to my remote server environment because I connect the vscode to the server via SSH. In the extension tab of VS code, it shows that the extension has also been installed in my remote server.

Thank you in advanced

Root repo folder was deleted after clicking "Delete to Trash" on a commit. now I can't find it in the Trash

Description

I had my git repo opened in vscode.
There was a commit in remote that wasn’t pulled yet.
I right-clicked on the commit and then clicked "Delete to Trash".
Now everything inside the repo folder is gone, including the .git folder and ignored files. I have nothing left ):

I also don't see it in the Trash folder (I'm using mac)

  • Please don't allow such a destructive option. (and never delete the .git folder)
  • Why is it not in the Trash - where should it be? Please explain these things and maybe add an option to recover from vscode.

Screenshot 2023-12-26 at 15 49 19

Pin Up Version

1.4.1

VS Code Version

Version: 1.85.1 (Universal)
Commit: 0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2
Date: 2023-12-13T09:48:06.308Z (1 wk ago)
Electron: 25.9.7
ElectronBuildId: 25551756
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 22.2.0

Git Version

2.39.1

Ability to distinguish pins

I often pin two or more directories that have the same name. For example one is components/myThing and the other is ducks/myThing, this seems like a common use case since Pin Up is great for pinning closely related code in desperate parts of the code base.

It would be cool if there was a way to easily distinguish these. Either automatically by prefixing the location of the directory to root items, maybe in a similar way that directories with a single child can be collapsed. Or manually by giving pins a name when you create them.

add option to save Pins at specified place

I often work on a read-only workspace an when using Pin Up there receive error messages:

exthost] [error] Error: EPERM: operation not permitted, mkdir 'x:\SOME\src\.vscode'
	at mkdirSync (fs.js:823:3)
	at Object.fs.mkdirSync (electron/js2c/asar.js:718:16)
	at PinDataProvider.refresh (c:\Users\USER\.vscode-oss\extensions\saekiraku.pin-up-1.4.0\src\PinDataProvider.js:142:20)
	at PinDataProvider.AddPin (c:\Users\USER\.vscode-oss\extensions\saekiraku.pin-up-1.4.0\src\PinDataProvider.js:168:18)
	at c:\Users\USER\.vscode-oss\extensions\saekiraku.pin-up-1.4.0\src\commands.js:13:23

Providing a setting where to store pins (for example C:\User\${env:USER}\my-pins\${workspacename}) would be a very useful thing.

[Feature request] Per user "global" pins that goes in your %appdata%/Code/User

I think it would be awesome if there was a way of adding "global" pins that goes in your %APPDATA%/Code/User .

I have a directory called "development shortcuts" on my drive where I put files that I need to access when working on various projects. Would be awesome if this directory could then be auto-pinned for each project I fire up by using the above described method.

应该判断系统类型,windows系统下不需添加`/`前缀到文件夹路径, 当前生成的路径示例/e:/projects/`

installed on win10 G 企业版+vscode

将工作区文件夹pin up后, 使用时,提示,文件夹不存在/e:/projects/

应该判断系统类型,windows下不需添加/前缀.

具体系统和vscode信息:

[Window Title]
Visual Studio Code

[Main Instruction]
Visual Studio Code

[Content]

版本: 1.44.2 (system setup)
提交: ff915844119ce9485abfe8aa9076ec76b5300ddd
日期: 2020-04-16T16:36:23.138Z (2 周前)
Electron: 7.1.11
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.15063

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.