ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Compass Navigator

by kapitanluffy ST4

🧭 Never get lost again navigating your code with Compass! Filter your list of open MRU tabs / files easily!

Details

Installs

  • Total 216
  • Win 100
  • Mac 69
  • Linux 47
Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18
Windows 0 0 2 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1

Readme

Source
raw.​githubusercontent.​com

🧭 Compass - Better Code Navigation

GitHub Sponsors


Lost? Tired of endlessly scrolling through tabs just to find the previous file you were working on?

Compass provides you the list of most-recently used tabs. It also helps you filter them by special tags!

By default, ctrl+tab jumps you to the next view in the MRU stack without showing the stack. Compass provides you a visual guide of where you have been.


Installation

  1. In your package directory, clone the repo
git clone git@github.com:kapitanluffy/sublime-compass.git "Compass Navigator"
  1. Run Preferences: Compass Keybindings and copy pre-commented the keybindings (or you can set it to your preferred keybinds)

  2. Press ctrl+tab to show the Compass 🧭

Contents

Support ☕

Like my Sublime plugins? Keep the updates coming by supporting me on GitHub Sponsors, Ko-fi, or Patreon. Your support will help fuel my coffee for my next coding session!


Opening Compass

ctrl+tab

Open the quick panel. Displays most-recently used tabs by default.

Opening Compass

Quick switching

You can do this by pressing ctrl+tab on the first and second items

Quick Switching

Selecting an Item

ctrl+ctrl (or press enter)

Select the current highlight and close the quick panel

Closing Compass

alt+alt (or press escape)

Go back to the initial tab and close the quick panel

Closing Compass

Filtering Items

To enable filters, you need to set enable_tags to True. After that, you can filter items by typing #

Filtering Items

Opening files

If you have ripgrep set in the settings, you can enable this feature. Please note that this will be slow in large projects!

Opening Files

Auto Close Tabs

Compass will automatically close the least used tab when you open the 1001th tab. You can manage this limit by changing max_open_tabs or disable it by setting to 0

Caching Items

Internally, Compass caches the MRU tabs. Reopening Sublime Text will not rebuild the MRU stack

The “Files” plugin which allows you to navigate to unopened files does not do this unfortunately. By default, each time you open compass, the Files plugin will always refetch your file list

This sucks when you have a very large project. Enabling caching helps with showing compass immediately. The downside of this is that it won't see newly created files. I am currently working on fixing this with the help of another plugin called FileWatcher. For now, you can run Compass: Reindex to recognize new files.

If your Compass does not show up immediately, try enabling the cache under plugins.files.enable_cache in the settings