Comments (6)
+1 from me too. The weird thing is that currently the file tree gets minimized when invoking ctrl-shift-x but not the right side panels. Would be great if they would get out of the way too. Thanks!
Addition: in the meantime people might consider setting a shortcut for Toggle Left Side Pane and Toggle Right Side Pane in Obsidian settings. I chose alt-ctrl-short-R and alt-ctrl-short-L for this.
from maximise-active-pane-obsidian.
+1 from me too. I came here just to request this feature as @luckman212 . We really need this option to hide the sidebars (right and left) when Maximise is active.
I really hope we can get this feature!
from maximise-active-pane-obsidian.
The weird thing is that currently the file tree gets minimized when invoking ctrl-shift-x but not the right side panels.
For me, none of the panels (including the file tree) get minimized.
Addition: in the meantime people might consider setting a shortcut for Toggle Left Side Pane and Toggle Right Side Pane in Obsidian settings. I chose alt-ctrl-short-R and alt-ctrl-short-L for this.
Thank you for writing this. I did not realize that it was possible, as I was searching "maximize" or "hide". :)
And yes, naturally this request gets a +1 from me as well, @deathau . That's the reason I came here in this repo and issues section.
from maximise-active-pane-obsidian.
Until this request is implemented, I figured out a really nice way to circumvent the limitations and get the functionality!
I am using AutoKey, a desktop automation utility for Linux and X11. Not to be confused with the AutoHotKey (a Windows version, https://www.autohotkey.com/ ). Frankly, AutoHotKey for Windows is a better software and one can easily find how to replicate what I did and described below.
So what I did was:
- In Obsidian settings I set 2 shortcuts:
a) Toggle Left Side Pane =Ctrl+Shift+L
(a combination that is never used anywhere).
b) Toggle Right Side Pane =Ctrl+Shift+R
c) Maximize Active Pane: Toggle = removedCtrl+Shift+X
and addedCtrl+Shift+Y
. - In AutoKey I created a file "Obsidian hide all panels.py". In that file's settings I also:
a) set hotkey toctrl+shift+z
b) set "Window Filter" toobsidian.obsidian
(so it works only in Obsidian window and you can continue using thectrl+shift+z
key combination in other programs)
c) to the script file itself I wrote this:
import time
#time.sleep(0.2)
keyboard.send_keys("<ctrl>+<shift>+l")
#time.sleep(0.2)
keyboard.send_keys("<ctrl>+<shift>+r")
Remember to press Ctrl+S
to save the file.
- In AutoKey I also created a second file "Obsidian hide all panels and windows except one.py". In that file's settings I also:
a) set hotkey toctrl+shift+x
b) set "Window Filter" toobsidian.obsidian
c) to the script file itself I wrote this:
import time
#time.sleep(0.2)
keyboard.send_keys("<ctrl>+<shift>+l")
#time.sleep(0.2)
keyboard.send_keys("<ctrl>+<shift>+r")
#time.sleep(0.2)
keyboard.send_keys("<ctrl>+<shift>+y")
Remember to press Ctrl+S
to save the file.
So now it works marvelously!
- If I press
ctrl+shift+z
, then both left and right panes disappear. Pressing the combination again brings those panes back. - If I press
ctrl+shift+x
, then both left and right panes disappear as well as the main text file window is maximized. Pressing the combination again brings everything back.
P.S. A caveat about AutoKey scripts. AutoKey has much more problems than Windows' AutoHotKey including the otherwise simple-sounding and essential functionality. One of the typical problems has to do with sending keystrokes. Sometimes they are not being sent, sometimes extra stuff is being sent. Very frustrating! Everything depends on one's particular scrips, hardware, programs, and luck. Therefore quite often one needs to put the script to sleep in between actually useful code lines (otherwise, not all of the commands will be executed on time and in correct order). This time those two scripts happened to work properly on my machine at this moment of time (this might easily change), therefore I commented out the time.sleep(0.2)
lines. Your mileage might vary: you might even need to increase the sleep time.
Edit: P.P.S. Another non-obvious cool thing about my changes is that if you use one of the functions only once and after that continue using the other function (so either once ctrl+shift+x
and after then only ctrl+shift+z
s; or ctrl+shift+z
and after then only ctrl+shift+x
s), then you are able to switch between "All documents visible, but no side panes" and "Only one document visible with side panes"! This might be very useful in some cases!
from maximise-active-pane-obsidian.
I came to ask the same thing, +1 for this request!
I also took a look at Razumihin/obsidian-fullscreen-plugin - that definitely "works" in that regard, but I don't like that it enters "fullscreen" mode on macOS which basically blocks access to any and all other apps while in that mode.
from maximise-active-pane-obsidian.
One downside here is that if you already the left sidebar closed, toggling will open it. I really miss Obsidian having a way to hide it (not toggle)
from maximise-active-pane-obsidian.
Related Issues (20)
- Incorrect maximising when both vertical and horizontal splits are present
- Feature Request : Add Readable Line Length Option
- Option to maximize from context menu HOT 3
- Feature Modify: Remember Cursor Position
- Doesn't seem to work on iPad Pro
- Uses only half the space if there are 2 horizontal panes with at least 2 vertical panes in them HOT 1
- When a note page is maximized by the "maximise active pane" plugin, Links within this page cannot be previewed through "hover editor" plugin HOT 1
- Maximised pane shows empty content in obsidian v0.15.0 when file navigator is activated/focused HOT 4
- Doesn't maximize with sliding-panes-obsidian HOT 2
- Bug : Bugs appeared when coming back to unmaximised panes when several panes are opened. HOT 4
- similar plugin 👉🔗 https://github.com/ryanpcmcquen/obsidian-focus-mode
- v0.16.0 Obsidian Breaks Plugin Completely
- Maximising Pane1 stops audio-embed in Pane2 from playing
- One pane disappears, but not maximised
- Outline links lead to blanks when in maximized mode HOT 2
- Render issues in Obsidian > 1.0.x HOT 1
- No longer working since stacked panes update HOT 4
- Doesn't go back to the exact view in stacked tabs mode
- This Plugin No Longer seems to Work
- Feature request: Exit fullscreen when opening a new pane window
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from maximise-active-pane-obsidian.