Giter Club home page Giter Club logo

tab-switcher's Introduction

Vinzent

Hey, I'm a student from Germany building apps with Flutter and plugins for Obsidian.

If you want to support me you can consider:


ko-fi

tab-switcher's People

Contributors

brunoroemers avatar kemonprogrammer avatar phibr0 avatar vinzent03 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  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

tab-switcher's Issues

Doesn't cycle through panes in v1.0.3

Seems like plugin stopped working (after version 1.0.0? )
I have two panes saved (calendar and kanban), but neither the shortcut nor running the command from the command-palette seems to be cycling through them.

Wraparound Issue with Notes in Sidebar

However, in my case, that's probably due to an Obsidian issue that prevents making a sidebar document active. (Obsidian allows dragging a document into a sidebar pane, but it doesn't allow making it "active", even though you can click into it and edit it.) Sidebar documents are included in iterateLeaves() and getLeavesOfType("markdown"), so this plugin attempts to cycle through them. But since they cannot be made active, the previously-active leaf remains active, so the cycling stops.

One way to fix that would be for this plugin to skip such leaves when moving forward or backward. A simple way to do this is to check that the workspace.activeLeaf has actually changed after calling setActiveLeaf(). If it hasn't, then the leaf wasn't suitable, and needs to be skipped in the rotation. This approach should be forward compatible in case Obsidian ever actually allows sidebar leaves to become active.

~ @pjeby

Modаl appears too fast

Hi,
I often use Ctrl+Tab to switch between the last two tabs. But I noticed that when I press these keys quickly, modal appears for a short time and then disappears. It's a little annoying.

Maybe it would help to set a small delay before the modal appears, or maybe it would only appear when I release the Tab key while holding Ctrl.

I use the Ctrl+Tab hotkey for Go to previous tab. All settings except Show modal disabled.

Thanks for great plugin. This is what I was looking for!

File extension typo?

Hi,

Shouldn't it be main.js as opposed to main.ts as per the readme?

Plugin works as advertised with the extension changed (and with it left as is strangely?)

I am new to coding so ignore me if I am missing something obvious.

Thank you for the plugin — I'm sure it's going to really help me.

Oliver

Text cursor does not switch when cycling through panes

As title says, when cycling through panes, the text cursor does not cycle along with the panes, specifically in edit mode. When using your plugin to move from Pane A to Pane B, Pane B does get selected—as it should, but the text cursor remains in Pane A. I would have to use my mouse—which the plugin advertised would reduce the usage of in the first place—and manually select Pane B in order to relocate the cursor accordingly; otherwise, I would be typing on Pane A when I intended to type on Pane B, even though the latter is the focused pane. It would be great that switching from Pane A to B with your plugin would also move the text cursor from Pane A to B.

Hoping you would fix this issue and improve this great plugin further. Stay safe!

Support all view types by default

For about a half a year I thought this plugin is just really buggy so I avoided using it. However I just didn't know about the view type feature. As soon I digged into it, I understood that I just have to call the "Enable this View Type" command (for excalidraw, canvas, media files ect...) and then it would actually work. So I'm wondering why not enable it for all tab types by default? I believe this would be a pleasant feature for new users ;)

[Feature Request] Option Exclude **Pinned Notes** from Cycle route

Hello @Vinzent03 !!!!!!!!

This FR is simple to explain: it's a setting that let's the user exclude pinned notes that are opeend in the workspace to pass in the cycle route.

Example A:

Note A is Active
Note B is Pinned
Note C is Open

If the setting in ON the cycle commands will only cycle between Note A and Note C

Example B:

Note A is Open
Note B is Pinned and Active
Note C is Open

If the setting in ON:
→ the cycle commands will go to Note A and Note C to to exit the pinned note

→ then continues to cycle between only Note A and Note C

Why I am asking for this Feature

I am using pinned notes to store some support notes that will only be open when I need to interact with their content

📸 I even have a css snippet that make this notes almost hidden in the workspace:
788DA532-C18B-4D48-A4BB-0D5F66DAF053

This way I have a specific command to make this pinned note Active when need:

As will probably know I use our beloved Hotkeys for Specific Files 💙💙💙 to quick switch to these pinned notes :)


Thanks for reading this !!!!! I hope you like my suggestion 🙏 🙏 🙏

Let me know if you need more information !!!

Have a great day 🌞

Possible to Ctrl-tab to the default "empty" page

Ctrl-tab works great to regular pages, but won't Ctrl-tab to the default "Empty" page. It would be great to be able to Ctrl-tab to this, mostly to allow it to be closed from the keyboard. The "No file is open" page in the screenshot.

Ctrl-Tab to empty page issue

Linux Ubuntu: stops to work after first switch

Config:

{
  "viewTypes": [
    "markdown",
    "canvas",
    "pdf"
  ],
  "showModal": false,
  "skipPinned": false,
  "stayInSplit": true,
  "focusLeafOnKeyUp": false,
  "useViewTypes": true
}

Hotkey config:

"cycle-through-panes:focus-on-last-active-pane-reverse": [                                       
  {                                                                                              
    "modifiers": [                                                                               
      "Mod",                                                                                     
      "Shift"                                                                                    
    ],                                                                                           
    "key": "U"                                                                                   
  }                                                                                              
] 

Versions:

Obsidian v1.6.3
Tab switcher 1.4.0
Ubuntu 22.04

When I press Ctrl+Shift-U first time, tab switches. Any further keyboard input in app is ignored (can't write text too).
No error at Ctrl-Shift-I DevTools console

Option to behave like alt-tab

Great plugin but it would be nice if there was an option for it to behave like alt-tab. I know the functionality works like chrome, but alt tab makes more sense to me.

I'm looking for the ability to quickly switch between the same 2 notes:

Example: I have 4 panes open.

  • on pane 1
  • hit ctrl-tab (keep holding ctrl) -> now on pane 2. hit tab (since I'm still holding ctrl) -> now on pane 3
  • on pane 3
  • hit ctrl-tab -> goes back to previous pane (pane 1)
  • on pane 1
  • hit ctrl-tab -> goes back to previous pane (pane 3)

I can quickly switch between two notes without the full cycle, or I can keep holding ctrl while taping tab to cycle.

This is how alt-tab works on windows to cycle through windows.

Reverse Cycling from first to last

Great plugin!

I don't know if it is already implemented (to my knowledge not), but when I am on the first pane and want to reverse cycle (to the last pane), it does not work.

This could be an improvement:

TLDR

Improvement:

  • When you are on the first pane
  • and you press CTRL+ SHIFT + TAB
  • You'll get to the last pane

ctrl+Tab has no effect on macOS

Looks like I cannot get this Plugin to work with ctrl+Tab.

This does nothing on macOS Catalina. Any idea what to lok out for?

feature request: make meta key configurable

Currently, it is only possible to switch tabs by pressing ctrl + <number>.
ctrl seems to be the hardcoded meta key, that this plugin listens on.

I would like to see an option, which allows me to set the meta key to a key of my liking.
I am used to pressing the alt key when switching tabs, because it seems to be the default setting on Linux Firefox.

[BUG] Modal not appearing as expected

Issue description:
The modal don't appear when using Go to next/previous tab commands.
It only appears when I press Go to next/previous tab command once, then use Go to left/right tab commands.

Kazam_screencast_00006_1.mp4

Option to cycle between multiple tabs without switching to them

Discussed in #20

Originally posted by victorstan May 6, 2023
I would like to request a feature that disables the tab switching when cycling. For instance, suppose you have three tabs opened, and you are currently on tab 1. When you press CTRL + TAB twice, you switch to the second tab and then to the third one.

I would like to be able to cycle between tabs without switching to them. In other words, switching should only occur when CTRL + TAB is released. This behavior is similar to the one in vscode.

Make this compatible with last version

Hi, first of all awesome pluging... Can't understand why this feature does not come automatically with Obsidian Tabs plugin. Anyway, there has been a major update which allow multiple windows, if I do ctrl+tab on a window that is not the main window then the plugin will execute the command on the main window and not in the on I'm currently on.

Hope I've described well the issue.

FR: Allow mouse click on the popup dropdown menu/list of tabs

Sometimes when you have many tabs open, instead of ctrl+tab+tab+tab+tab... to switch over them one by one, it would be much easier and time-saving to allow just clicking on the list item and jump to that tab.

I believe mouse click is a rather natural, intuitive, consistent interactive behavior we expect to be supported by default in a dropdown list-like thing, from our experiences and convention. For example, VSC and system-level task switchers (alt+tab on Windows and cmd+tab on macOS) all support mouse actions in the switcher. Other interface components of this kind, such as auto-completion list, suggestion list, search results, command palette, IME, etc. they all support either cycling the focus through all the list items by tab, or mouse click on a certain item.

Therefore, I think it would be great if we can have this feature. And also, thanks for making this plugin!

Not working on mobile devices

I've installed the plugin but it's not working, any of the commands.

Things I've tried:

  • Closing and reopening vault.
  • Uninstalling and reinstalling the plugin.

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.