Giter VIP home page Giter VIP logo

vscode-autohide's Introduction

*This project is in maintenance mode. It does everything I need. I will accept PRs for new features, but I won't be adding any new features myself

Auto Hide

Extension install page: https://marketplace.visualstudio.com/items?itemName=sirmspencer.vscode-autohide

Features

Auto-hide side bar

Causes the side bar to be hidden whenever the user clicks into the text editor.

I highly recommend trying the sidebar on the right side. The side bar does not so when on the left, the editor text will shift when the side panel opening and closing.

Auto-hide side bar

Auto-hide bottom panel

Same thing as above, except for the bottom panel (output, terminal, etc. are contained in the panel).

Settings

  • autoHide.autoHideSideBar: Hide the side bar when the user clicks into a text editor. [boolean, default: true]
  • autoHide.autoHidePanel: Hide the panel (output, terminal, etc.) when the user clicks into a text editor. [boolean, default: true]
  • autoHide.autoHideReferences: Hide the References panel (Go to References) when the user clicks into a text editor. [boolean, default: true]
  • autoHide.sideBarDelay: How long to wait before hiding the side bar. A delay prevents text from being selected. A longer delay allows the horizontal scroll to adjust to the change in selection before the side bar hiding causes the horizontal scroll to adjust, avoiding conflicts. [number, default: 450]
  • autoHide.panelDelay: How long to wait before hiding the panel. Same as for the side bar when the panel is on the side. If the panel is on the bottom, there is no need for delay. [number, default: 300]
  • autoHide.hideOnOpen: Hide side bar and panel when VSCode first opens. [boolean, default: false]

Commands

  • autoHide.toggleHideSideBar: Toggle autoHide.autoHideSideBar setting for current workspace. Use this command to pin/unpin the side bar.
  • autoHide.toggleHidePanel: Toggle autoHide.autoHidePanel setting for current workspace. Use this command to pin/unpin the panel.

Developing

  1. Clone/download repo: https://github.com/sirmspencer/vscode-autohide.git
  2. Make code changes in "src" folder.
  3. Run "npm run compile". (this will start compiler in watch mode) [if editing in vscode, Ctrl+Shift+B also works]
  4. In vscode, open the Debug panel and launch the extension from there.

Publishing

Get access token

https://dev.azure.com/

login

vsce login [username]

Publish package

vsce package
vsce publish

https://code.visualstudio.com/api/working-with-extensions/publishing-extensionn>

Credit to 'VTools for Visual Studio Code'

This extension is a heavily modified version of: https://marketplace.visualstudio.com/items?itemName=venryx.vscode-vtools

vscode-autohide's People

Contributors

bot-man-jl avatar ivribalko avatar mehyaa avatar sirmspencer avatar sr-tream 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

Watchers

 avatar  avatar  avatar

vscode-autohide's Issues

The extension is not keyboard-driven environment friendly

Hello there!

Loving the extension, but it seems like it is only reacting to clicks on the editor window.

If you'd use CTRL+Shift+E to focus into the explorer tab and switch to a new file from there,
even though you start typing and the focus shifted over to the editor window,
the extension is not noticing the focus shift, hence leaving the sidebar and terminal windows open.

Thanks!

autoHide.sideBarDelay - number values eq ?

hi. thank you very much for this extension. I use it a lot. occasionally. sometimes very often.

I can't figure out how to adjust the time-out to my liking. I don't perceive that changing the values of autoHide.sideBarDelay (e.g. in @ext:sirmspencer.vscode-autohide ) has any perceivable effect on the actual behavior. Do the values represent milliseconds?

It seems to either basically go away almost immediately (default, which is great if you want that ), or it to never go away if i increase the number but maybe i'm adding too much to it

What might I be doing wrong?

I'd very much love having the sidebar go away, except maybe after 5-10 seconds or so

Thank you muchas gracias!

autoHide.autoHideReferences should be false by default

I recently had a problem where the reference closes automatically whenever I open a reference and try editing something inside.
Had to uninstall a couple of extensions before figuring the autoHide.autoHideReferences is what is causing that.
I kinda feel that should be disabled unless the user turns it on themselves.

Thanks for the work by the way.

Makes in the Working tree the popup menu disappears

Type: Bug

  • Open a Working tree window on a file that has lines changed from the ones in GIT.
  • Click on the light bulb on the previous line in a change.
  • The popup menu in which you can revert the change briefly appears and immediately disappears

Extension version: 1.0.8
VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:28:19.990Z)
OS version: Windows_NT x64 10.0.22631
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz (12 x 2592)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
Load (avg) undefined
Memory (System) 31.77GB (15.81GB free)
Process Argv D:\Projects\STMng\STMng.code-workspace --crash-reporter-id df3b806e-c371-4e03-89b8-d13088946634
Screen Reader no
VM 0%

Option to hide when text editor gets focus using keyboard

As a keyboard user it would be awesome if autohide when the texteditor gets focus, whether its from mouse click or using keyb
board shortcuts. i.e.: cmd+shift+e to open explorer, use arrow keys to select a file to edit, press enter [text editor gets focus and sidebar is hidden]

Remove panels from being hidden

Is it possible to get an option to disable certain panel to not be closed ?
for some project i'd like to keep the terminal open but still have the sidebar to be auto-hidden

Doesn't work when clicking on a empty file

Steps to replay:

  • Create/open a empty file.
  • Expand the sidebar and/or panel.
  • Click on the empty file.

Expected: Hide the sidebar and/or panel.

Actual: Doesn't hide any of them.

executes hiding on init before it reads config

Type: Bug

I setup addon to only hide bottom panel
"autoHide.autoHideSideBar": false,

I open a new folder
but side bar auto hides, it shouldn't

When addon is disabled sidebar stays open, which is expected.

Same way when I enable addon, it auto hides side bar instantly, even though I specify not to in config
once I reopen sidebar it doesn't hide it again.

I think it executes hiding on init before it reads config.

Extension version: 1.0.8
VS Code version: Code 1.73.1 (6261075646f055b99068d3688932416f2346dd3b, 2022-11-09T04:27:29.066Z)
OS version: Windows_NT x64 10.0.19045
Modes: Unsupported
Sandboxed: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz (8 x 2304)
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
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 15.81GB (5.85GB free)
Process Argv
Screen Reader no
VM 0%

Option to show only Sidebar or Panel at a time.

Hello.

Please add option to show only Sidebar or Panel at a time (auto close other one if it was opened).
Because I were set both of them's position to one right side, so I want to open just only one at a time.

Thanks for this useful extension.

Publish vscode-autohide to Open VSX

Dear extension author,
Please publish this extension to the Open VSX marketplace.

Context

Unfortunately, as Microsoft prohibits usages of the Microsoft marketplace by any other products or redistribution of .vsix files from it, in order to use VS Code extensions in non-Microsoft products, we kindly ask that you take ownership of the VS Code extension namespace in Open VSX and publish this extension on Open VSX.

What is Open VSX? Why does it exist?

Open VSX is a vendor neutral alternative to the MS marketplace used by most other derivatives of VS Code like VSCodium, Gitpod, OpenVSCode, Theia-based IDEs, and so on.

You can read on about Open VSX at the Eclipse Foundation's Open VSX FAQ.

How can you publish to Open VSX?

The docs to publish an extension can be found here. This process is straightforward and shouldn't take too long. Essentially, you need an authentication token and to execute the ovsx publish command to publish your extension. There's also a doc explaining the whole process with an example GitHub Action workflow.

Settings changes don't take effect until VS Code reload

I was trying to use VS Code settings to set autoHidePanel to false, but the panel was still auto hiding. I eventually figured out that I had to restart VS Code for the setting change to take effect.

I'm using Auto Hide version 1.0.3

Feature request: Auto-hide sidebar and panel on Workspace launch

One thing that drives me nuts is if I launch VSCode using a Workspace file, the sidebar and panel reopen if they were opened when you quit. There's no VSCode setting to prevent this, unfortunately.

This would be a great feature—to ensure the panel and sidebar are closed on launch, no matter what.

Sidebar visible when using multiple panels and switching

I have some weird behavior if i use split panels for showing 2 files next to eachother. See gif for example.

  • When i click on the non-active panel, the sidebar shows, it only shows briefly
  • If you click on the non-active panel, for example the left and accidentally hover above the sidebar it stays open. You have to click again for it to autohide

autohidesidebar

Show side bar on hovering the activity bar

Hi, first of all thank you for making this. This feature is still not implemented, so I really appreciate your effort in doing this.

The only thing that bugs me a lot is the fact that I have to click the small icon or use the hotkey to show the side bar, again. I would love to show it on hovering the activity bar. I know this is a duplicate of #13, but I think only this particular issue can be solved pretty quickly. Additionally, a timeout delay setting for that behavior would be nice, but I think it would already be a good upgrade to have a simple instant show on hover available.

Request - enable only in zen mode

Hi,

Live this extension - I use it in demos, and when I record videos - it's great.

Any chance that you can add a configuration that will allow me to choose to activate the auto-hide only in zen mode?

Request: disable during debugging

Would be great to have the extension not autohide during debugging as this is when sidebar/terminal are very important. Great extension though, thank you!

Hide on focus lost

Is it possible to hide both the panel and sidebar when focus is lost, or in other words, when the editor gains focus upon typing the first symbol, for example?

Feature request: add command to pin panel/sidebar

I think it would be convenient to be able to toggle pin/unpin sidbar or panel via a command. 😄

For example:

  • Pin panel when checking search results.
  • Pin sidebar when viewing diffs.

I suppose that the pin/unpin states should be effective only in current workspace.

Clicking on the sideBar/panel should reset the panel Delay

I have increased the time in the sideBarDelay and paneldelay options to be 10s (10000). The reason is I do not want the panels to auto-hide immediately as I often see a file and then decide maybe I need to see another file. As a result I stumbled upon an issue.

If we have the sideBar open and then click on the text editor it starts the countdown for the delay. However, then if we click on the sideBar the countdown still continues and if you are seeing something in the sideBar suddenly when the countdown delay reaches 0 it closes. I was hoping that when we click on the sideBar or the panel then the countdown should reset and not be triggered.

Steps to reproduce:

  1. Set the autoHide.autoHidePanel and the autoHide.sideBarDelay to 10000 ms.
  2. Open the sidebar or terminal.
  3. Click on the text editor (this will start the delay setTimeout functions and lets call this T1). Immediately, click on the sidebar or the terminal within 10s.
  4. When the setTimeout T1 expires it will close the sidebar/terminal

Desired Change
When you click on the sidebar or the terminal the setTimeout should be cleared.

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.