Cudatext: Pinned tabs

Created on 29 Mar 2021  ·  10Comments  ·  Source: Alexey-T/CudaText

Предлагаю добавить новое поведение для табов: "закрепление"

Аналог: закрепленные табы у ТotalСommander

Цель:

  • Избавиться от случайных промахов/кликов/нажатий

Поведение:

  • Для закрытия _закрепленного_ таба нужно будет ответить на подтвержение "Действительно закрыть?"
  • По команде Закрыть все _закрепленные_ остаются открытыми

Место хранения:

  • Сессия
enhancement

Most helpful comment

new beta..... API: EDSTATE_PINNED, PROP_TAB_PINNED.

All 10 comments

Will postpone this wish, for after 1.130.0

Great idea.

@Alexey-T if you will be adding this, please make it an Editor property (Editor.get_prop()), and add an event for on_state_ed()

I would like to add an option to this plugin (got the idea from this issue :) ) to collapse pinned tabs into just icons, like so

small_icons

Collapsing into icons? It needs only with options with default false

Collapsing into icons? It needs only with options with default false

That is only for my plugin, and yes, it is will be disabled by default

new beta..... API: EDSTATE_PINNED, PROP_TAB_PINNED.

@kvichans Pls test.

Если я правильно вижу, сейчас "пришпилить" можно только через локальное меню ярлыка.
Это крайне неудобно.
Нужна команда!
Может быть, уже есть с неожиданным именем?

Неудачный символ #. Ведь у него мнемоника "номер"
Лучше подобрать другой. Например, возможно, подходят:

  • !
  • ° или
  • или или

Поменял символ на "!"

  • add: tab's context menu has new item "Pinned" (thanks @kvichans)
  • add: command "set tab color..."
  • add: command "reset tab color"
  • add: command "set tab pinned state"
  • add: command "reset tab pinned state"
  • add: command "toggle tab pinned state"

OK

Done

Was this page helpful?
0 / 5 - 0 ratings

Related issues

charliewales picture charliewales  ·  4Comments

JairoMartinezA picture JairoMartinezA  ·  7Comments

rhinolophus picture rhinolophus  ·  5Comments

Alexey-T picture Alexey-T  ·  7Comments

Alexey-T picture Alexey-T  ·  4Comments