Giter VIP home page Giter VIP logo

maximise-active-pane-obsidian's Introduction

Maximise Active Pane Plugin

GitHub release (latest SemVer) GitHub All Releases

A plugin for Obsidian which simply fills the workspace with the active pane. Press ctrl+shift+x (by defualt) to maximise or un-maximise the currently active pane

Screenshot

Compatibility

Custom plugins are only available for Obsidian v0.9.7+.

The current API of this repo targets Obsidian v0.9.7.

Notes

This is all very experimental at the moment, so parts might not work, etc.

Installation

From within Obsidian

From Obsidian v0.9.8, you can activate this plugin within Obsidian by doing the following:

  • Open Settings > Third-party plugin
  • Make sure Safe mode is off
  • Click Browse community plugins
  • Search for this plugin
  • Click Install
  • Once installed, close the community plugins window and activate the newly installed plugin

Updates

You can follow the same procedure to update the plugin

From GitHub

  • Download the Latest Release from the Releases section of the GitHub Repository
  • Extract the plugin folder from the zip to your vault's plugins folder: <vault>/.obsidian/plugins/
    Note: On some machines the .obsidian folder may be hidden. On MacOS you should be able to press Command+Shift+Dot to show the folder in Finder.
  • Reload Obsidian
  • If prompted about Safe Mode, you can disable safe mode and enable the plugin. Otherwise head to Settings, third-party plugins, make sure safe mode is off and enable the plugin from there.

Security

Third-party plugins can access files on your computer, connect to the internet, and even install additional programs.

The source code of this plugin is available on GitHub for you to audit yourself, but installing plugins into Obsidian is currently a matter of trust.

I can assure you here that I do nothing to collect your data, send information to the internet or otherwise do anything nefarious with your system. However, be aware that I could, and you only have my word that I don't.

Development

This project uses Typescript to provide type checking and documentation.
The repo depends on the latest plugin API in Typescript Definition format, which contains TSDoc comments describing what it does.

Note: The Obsidian API is still in early alpha and is subject to change at any time!

If you want to contribute to development and/or just customize it with your own tweaks, you can do the following:

  • Clone this repo.
  • npm i or yarn to install dependencies
  • npm run build to compile.
  • Copy manifest.json, main.js and styles.css to a subfolder of your plugins folder (e.g, <vault>/.obsidian/plugins/<plugin-name>/)
  • Reload obsidian to see changes

Alternately, you can clone the repo directly into your plugins folder and once dependencies are installed use npm run dev to start compilation in watch mode.
You may have to reload obsidian (ctrl+R) to see changes.

Pricing

Huh? This is an open-source plugin I made for fun. It's completely free. However, if you absolutely have to send me money because you like it that much, feel free to throw some coins in my hat via the following:

GitHub Sponsors Paypal

Version History

0.0.3

  • Fix for incompatibility with Sliding Panes (and potentially other plugins) (Thanks PJ Eby!)

0.0.2

  • Fix for specific cases of pane not being maximised properly (Thanks AlansCodeLog!)

0.0.1

Initial release. Does what it says on the tin.

maximise-active-pane-obsidian's People

Contributors

actions-user avatar deathau avatar pjeby 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

Watchers

 avatar  avatar  avatar

maximise-active-pane-obsidian's Issues

Allow hide current page.

I have 3 pages,
1st page for taking note
3rd page for pdf viewer
middle page for temporary taking note.

I want to hide the middle page. possible ?

Thank you .

Render issues in Obsidian > 1.0.x

Both "Sliding panes" and "maximize active pane" complemented each other nicely before obsidian reached version 1.0.x

Although, "Sliding panes" is obsolete now, "maximize active pane" is still needed, because there isn't any shortcut in core obsidian allowing to focus on one pane only in "stacked view"

There are 2 more plugins to focus on our active pane in stacked view, but I love more the simplicity of your plugin,
"maximize active pane" should be a core feature as well, because it's needed in stacked view - for those who use tabs, they won't understand why "maximize active pane" is necessary

Currently I can't use "maximize active pane" anymore, because your plugin needs an update, it's incompatible with newer versions of obsidian as it is interfering with plugins that render diagrams or mind maps

I suggest you to revise and update/ upgrade your code and then to ask the developers of obsidian to incorporate "maximize active pane" into its core features, because needed for "stacked view"

Unmaximize oddity

After maximizing the panel in focus and working on it, I unmaximized. This is what I got:

max

I had to correct it with a refresh - I presume that should not be necessary.

Bug : Bugs appeared when coming back to unmaximised panes when several panes are opened.

Here picture will speak more than words.
Obsidian : v0.15.9

Before maximising (everything ok)

image

Maximising the central pane (everything ok)

image

Unmaximising, coming back to normal view => buggy

image
=> Orange : a part of the previous panes disappeared behing the one that have been maximised.
=> The one that have been maximised stay larger than before

When scrolling left

image
=> When scrolling left we see that panes are going behing the one that have been maximised

When scrolling right

image
=> When scrolling right, curious things happen πŸ™‚

Workaround

Close de buggy note and reopen

Thanks for your work πŸ˜‰

MichaΓ«l

Feature Request : Add Readable Line Length Option

One of my workflows in Obsidian involves reading long texts. Obsidian has an option "Readable Line Length" that really fits my need just for long text reading
Screen Shot 2021-06-14 at 15 37 49

My suggestion is the combination of Maximise Active Pane and Readable Line Length. An option to toggle Readable Line Length ON when the Maximise is ON.

Readable OFF
Screen Shot 2021-06-14 at 15 38 29

Readable ON
Screen Shot 2021-06-14 at 15 38 50

Option to maximize from context menu

I have a friend who is starting to use Obsidian and he can't use shortcuts because of a disability. Would it be possible to add an option in the context menu (right-click) to open the file maximized and then another to restore?

One pane disappears, but not maximised

I am on Samsung Tablet S4 with the new Obsidian version. After the update maximizing doesn't work. If I have 2 panes open and call the maximize command, then 1 pane disappears, but the other is not maximized. Cycle through panes plugin seems still to work.

Doesn't go back to the exact view in stacked tabs mode

version 1.3.5. desktop public.

When switching back out of the maximized tab, it seems to show the first tab in the stack while at least having the cursor in the previously maximized tab.

Relatively minor issue but annoying. Hopefully you can get around to it. :)

Almost works with Sliding Panes

In Obsidian 0.9.21 (not sure about earlier versions), maximizing only works correctly if all panes fit in the window width (so, if there is no horizontal scrolling needed).

If that's not the case, maximizing a pane only hides the others while keeping the same width.

To illustrate, before maximizing :
image

After maximizing pane "Untitled" :
image

This Plugin No Longer seems to Work

Others have seemed to point to an Obsidian Update that might have made this Plugin Stop Working.

A suggestion to use another Plugin, "Pane Relief" to Maximize the Pane was given. This Plugin however, Maximizes the Tab, Not the Pane specifically.

There is still a need for this Plugin to Work (Maximise Active Pane)!

Please Help!

Maximising Pane1 stops audio-embed in Pane2 from playing

Hello,

I really love this plugin. However, it has a crucial flaw:

Assume you have an audiofile embedded into a note in Pane1, and said audio-file is currently running/being played back. If you now maximise another pane, say Pane2, the audio file stops playing. While an edge-case, this is at times extremely irritating. From testing I assume that all the other files are not actually closed - otherwhise un-maximising a pane would reset the audiofile back to its start.

I would really appreciate if this could be fixed.

Thank you,
Sincerely,
~Gw

Include option to hide sidebars

Would it be possible to include a setting where when entering fullscreen, the pane takes up the entire window, occluding any sidebars that may be open at the time?

indicator for maximised mode

its difficult to figure out if the current note is maximized or if it is the only note open. Can we have some kind of indicator for that?

Outline links lead to blanks when in maximized mode

Hi there. I don't know if this plugin is still maintained? I like it a lot, however I encounter an issue.
Once activated, if I try to jump around in the note using the outline in the side pane, it bring me to blank (empty) space, no matter high header I click on...

Strangely, if I then click on a different tab, then come back to the previous tab, the blank space is replaced by the header I was tying to jump to. So it seems like there is some kind of needed "refresh" issue that happens... ?

I'm aware there is a focus mode plugin, however, as far as I can tell, it does not allow me to use the outline which is what I am trying to do. I wonder if a fix to this plugin is possible?
Thank you.

3 column edge case

I've noticed an edge case that doesn't seem to work. I currently have 3 panes open side by side with a single document in the left column, 2 documents in the middle column (one on top of the other) and a single document in the third column (see first screenshot below). Maximising works great for all notes except the one in the 3rd column. The result of maximising the third column is shown in the second screenshot below. Is there a way around this ? I don't have any custom CSS applied.
unknown
unknown-1

Feature Modify: Remember Cursor Position

Hi there, I would like to request a feature modify. Supposed I have different windows in my workspace, I maximized one of them and went back to the workspace, then I found out that all the other note windows jumped to the head. It is quite annoying to address the location again every time.

Thank you for considering my request

Option to maximize multiple panes

This feature request is similar to this one: Allow hide current page

Thanks to Andy mode, we can open a lot of panes at once. But I found myself in a number of cases where, say I have 10 panes, I want to just view 4 of those without having to close the other 6. If I wanted to just view one of those notes, the plugin already does what I want, but sometimes I want more than one to be displayed while also want to keep the others open yet hidden.

I'm wondering if you are interested in implementing this as a feature as it might be a whole 'nother plugin that simply hides selected panes (where hiding all except one pane does what your plugin already does).

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.