You are not logged in.

#1 2023-10-31 09:45:31

R0_
Member
Registered: 2023-06-03
Posts: 7

How to change bl-text-editor? [SOLVED]

I want to use sublime instead of geany.
mod4 + e must call sublime instead of geany.
and text file must open with a sablime.

problem:
I can't find where bl-text-editor is defined

Offline

#2 2023-10-31 12:06:52

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,140
Website

Re: How to change bl-text-editor? [SOLVED]

It's defined in Debian Alternatives (Main Menu>System>Edit Debian Alternatives>bl-text-editor).

If you've installed sublime via their deb package or via apt as their documentation describes, you should see Sublime listed as an option in Debian Alternatives...

https://www.sublimetext.com/3
https://www.sublimetext.com/docs/linux_ … ories.html

Select the bulletmark (the circle before the name) and enter your password.

-edit- I just tested this, and the Sublime deb package from that first link does not create an alternatives entry. You can create one by running the following command in a terminal...

sudo update-alternatives --install /usr/bin/bl-text-editor bl-text-editor /opt/sublime_text/sublime_text 50

The 50 will give it a higher priority than geany so it should automatically be selected in alternatives.

Last edited by hhh (2023-10-31 12:21:44)


I don't care what you do at home. Would you care to explain?

Offline

#3 2023-10-31 13:41:39

R0_
Member
Registered: 2023-06-03
Posts: 7

Re: How to change bl-text-editor? [SOLVED]

я не понимаю почему это работает. Но все равно спасибо. Это помогло.

Offline

#4 2023-10-31 13:44:23

hhh
Gaucho
From: High in the Custerdome
Registered: 2015-09-17
Posts: 16,140
Website

Re: How to change bl-text-editor? [SOLVED]

https://wiki.debian.org/DebianAlternatives

Пожалуйста.

Marking this thread [SOLVED].


I don't care what you do at home. Would you care to explain?

Offline

#5 2023-11-04 02:30:50

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 12,654
Website

Re: How to change bl-text-editor? [SOLVED]

hhh wrote:

It's defined in Debian Alternatives (Main Menu>System>Edit Debian Alternatives>bl-text-editor).

If you've installed sublime via their deb package or via apt as their documentation describes, you should see Sublime listed as an option in Debian Alternatives...
---
-edit- I just tested this, and the Sublime deb package from that first link does not create an alternatives entry.

Some popular text editors are preset in a list to automatically set themeslves as alternatives for bl-text-editor when installed. Sublime has to be done manually though, because it's not in the Debian repositories, so didn't seem justified.

Current auto-set editors are "emacs gedit jedit kate medit mousepad scite" but we could add more...


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )

Introduction to the Bunsenlabs Boron Desktop

Offline

Board footer

Powered by FluxBB