Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
0
votes
0
answers
27
views
How to preset slime target to vim terminal by default?
When I use [vim-slime][1], every time I open a vimterminal I have to reconfigure it. ``` :let g:slime_target="vimterminal" ``` Followed by: ``` SlimeConfig ``` And then I choose the terminal I just opened as the target for the buffer I am in via a read statement from the plugin. This is becoming tir...
When I use vim-slime , every time I open a vimterminal I have to reconfigure it.
:let g:slime_target="vimterminal"
Followed by:
SlimeConfig
And then I choose the terminal I just opened as the target for the buffer I am in via a read statement from the plugin.
This is becoming tiresome; I seem to be able to set the slime_target as vimterminal
using my .vimrc
, but it is still unclear to me how to call the SlimeConfig
command and pass it an argument on the latest newly opened terminal upon opening the vimterminal.
I've found the following thread that seems to address this, but it appears that it's fired every time one switches windows.
leeand00
(4937 rep)
Jul 23, 2025, 03:52 PM
6
votes
3
answers
10042
views
Configuring mbsync with AuthMech XOAUTH2
I can't seem to figure out how to get `mbsync` to work with OAuth for Gmail because I can't get `mbsync` to find the xoauth2 `sasl` plugin on Ubuntu. I'm fairly confident that everything about my `mbsync` config for OAuth is working correctly (e.g. manually testing the PassCmd successfully generates...
I can't seem to figure out how to get
mbsync
to work with OAuth for Gmail because I can't get mbsync
to find the xoauth2 sasl
plugin on Ubuntu.
I'm fairly confident that everything about my mbsync
config for OAuth is working correctly (e.g. manually testing the PassCmd successfully generates an access token)
edit: I have installed sasl-bin
via apt, and https://github.com/robn/sasl2-oauth from source.
---
**Questions**
- How can I manually "register" a sasl
plugin for mbsync
? (aka add it to the list of 'available' SASL mechanisms in the first log pasted below)
- Could this issue be due to another component in my "email stack"? Some threads I've read suggest recompiling mutt from source, but I don't understand why mutt would be causing auth problems.
---
Using mbsync
installed via nix-env
, I haven't been able to get past
C: 0/1 B: 0/0 M: +0/0 *0/0 #0/0 S: +0/0 *0/0 #0/0
IMAP error: selected SASL mechanism(s) not available;
selected: XOAUTH2
available: GS2-IAKERB GS2-KRB5 SCRAM-SHA-1 SCRAM-SHA-256 GSS-SPNEGO GSSAPI DIGEST-MD5 EXTERNAL OTP CRAM-MD5 PLAIN LOGIN ANONYMOUS
C: 1/1 B: 0/0 M: +0/0 *0/0 #0/0 S: +0/0 *0/0 #0/0
I've also tried reinstalling mbsync/isync
from apt, as well as building isync
from the source. Both of which result in the following error.
Notice: Master/Slave are deprecated; use Far/Near instead.
C: 0/1 B: 0/0 F: +0/0 *0/0 #0/0 N: +0/0 *0/0 #0/0
Error: SASL(-1): generic failure: Unable to find a callback: 32775
C: 1/1 B: 0/0 F: +0/0 *0/0 #0/0 N: +0/0 *0/0 #0/0
jackmac92
(63 rep)
Dec 22, 2020, 03:49 AM
• Last activity: Feb 25, 2025, 02:57 PM
0
votes
1
answers
730
views
Unable to add keys with ssh-agent plugin in zsh
I just installed arch, and I am trying to configure my shell, `zsh`. I am currently using `zinit` as my plugin manager with `powerlevel10k`. I was trying to automate the activation of the `ssh-agent` and the addition of keys to it. This is my current `.zshrc` file: ``` neofetch # Enable Powerlevel10...
I just installed arch, and I am trying to configure my shell,
zsh
.
I am currently using zinit
as my plugin manager with powerlevel10k
.
I was trying to automate the activation of the ssh-agent
and the addition of keys to it.
This is my current .zshrc
file:
neofetch
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.config/zsh/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# Set the directory to store zinit and plugins
# --- Defined in the .zshenv file
# Download Zinit if it's not there yet
if [ ! -d "$ZINIT_HOME" ]; then
mkdir -p -- $ZINIT_HOME:h
git clone https://github.com/zdharma-continuum/zinit "$ZINIT_HOME"
fi
# Source/Load zinit
source "${ZINIT_HOME}/zinit.zsh"
# Add in Powerlevel10k
zinit ice depth=1; zinit light romkatv/powerlevel10k
# Add in zsh plugins
zinit light zsh-users/zsh-syntax-highlighting
zinit light zsh-users/zsh-completions
zinit light zsh-users/zsh-autosuggestions
zinit light Aloxaf/fzf-tab
# Add in snippet
zinit snippet OMZP::git
zinit snippet OMZP::sudo
zinit snippet OMZP::archlinux
zinit snippet OMZP::command-not-found
zinit snippet OMZP::ssh-agent
# Load completions
autoload -U compinit && compinit
# Replay all cached completions ( recommended by documentation )
zinit cdreplay -q
# To customize prompt, run p10k configure
or edit ~/.config/zsh/.p10k.zsh.
[[ ! -f ~/.config/zsh/.p10k.zsh ]] || source ~/.config/zsh/.p10k.zsh
# Keybind - emacs style, enables ^f ^b ^a ^e ...
bindkey -e
bindkey '^p' history-search-backward
bindkey '^n' history-search-forward
# History
# -- some changes already in .zshenv file
setopt appendhistory # append to history file instead of overwritting
setopt sharehistory # share command history between sessions
setopt hist_ignore_space # ignore commands starting with space
setopt hist_ignore_dups
setopt hist_ignore_all_dups
setopt hist_save_no_dups
setopt hist_find_no_dups # Don't show duplicates in history search
# Completion styling
zstyle ':completion:*' matcher-list 'm:{a-zj}={A-Za-z}'
# Set the default colors to LS_COLORS
eval "$(dircolors -b)"
zstyle ':completion:*' list-colors $LS_COLORS
zstyle ':completion:*' menu no
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
# ssh-agent configurations
zstyle :omz:plugins:ssh-agent quiet yes
zstyle :omz:plugins:ssh-agent lazy yes
zstyle :omz:plugins:ssh-agent agent-forwarding yes
zstyle :omz:plugins:ssh-agent identities ~/.ssh/github_rsa
# Aliases
alias ls='ls --color'
alias c='clear'
alias b='cd ..'
# Shell integrations
eval "$(fzf --zsh)" # Fuzzy finding
eval "$(zoxide init --cmd cd zsh)"
As you can see, for ssh-keys I am using:
zinit snippet OMZP::ssh-agent
and the following settings:
zstyle :omz:plugins:ssh-agent quiet yes
zstyle :omz:plugins:ssh-agent lazy yes
zstyle :omz:plugins:ssh-agent agent-forwarding yes
zstyle :omz:plugins:ssh-agent identities ~/.ssh/github_rsa
~/.ssh/github_rsa
is the location of a valid key and has no password associated with it.
My ~/.ssh/config
file is super simple. It only contains the line AddKeysToAgent yes
.
----
Initially the problem I was facing was that no key was added to the agent.
Now, after some testing I found that the key only gets added to the agent if it has the default name id_ed25519
, otherwise nothing happens ( at least with the values I tested for ) .
I couldn't test the loading of more than one key since they need to have different names, which means, different from the default which by my tests, doesn't work.
As suggested, I tried removing the setting zstyle :omz:plugins:ssh-agent lazy yes
even if not recommended when using powerlevel10k
. Weirdly enough, if the key has the default name it gets loaded anyways
Educpf
(53 rep)
Oct 7, 2024, 09:24 PM
• Last activity: Oct 10, 2024, 09:31 PM
30
votes
6
answers
19974
views
chromium browser (pepperflashplugin) opening listening ports on 0.0.0.0:5353
I am using `chromium browser` (chrome) with `pepperflashplugin` in `Debian`. I have noticed, chromium/pepperflashplugin opens a listening port on my public interface `0.0.0.0:5353` as seen with `netstat`: netstat -lptun Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name udp 0 0...
I am using
chromium browser
(chrome) with pepperflashplugin
in Debian
. I have noticed, chromium/pepperflashplugin opens a listening port on my public interface 0.0.0.0:5353
as seen with netstat
:
netstat -lptun
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
udp 0 0 0.0.0.0:5353 0.0.0.0:* 13971/libpepflashpl
I have been using Firefox (Iceweasel) before and I have never seen browser/flash-plugin to open ports. Indeed, I have never seen any client application opening listening ports on 0.0.0.0
.
**Why is chromium doing this?**
**Is this necessary ?**
**Can I disable this?**
**Can I start chromium with pepperflashplugin disabled ?**
Martin Vegter
(586 rep)
Feb 27, 2015, 10:28 PM
• Last activity: Jul 2, 2024, 07:37 AM
0
votes
0
answers
212
views
Trouble using a Qt 6 application on an older (SLES 15) machine
I'm trying to run an app which apparently uses some Qt6 capabilities on my SLES 15 SP5. When I do that, I get the following error message: ``` qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin. qt.qpa.plugin: Could not load the Qt platform plugin "...
I'm trying to run an app which apparently uses some Qt6 capabilities on my SLES 15 SP5. When I do that, I get the following error message:
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland, offscreen, xcb, wayland-egl.
Application could not be initialized!
This is likely due to missing Qt platform dependencies.
For a list of dependencies, please refer to https://doc.qt.io/qt-6/linux-requirements.html
To view missing libraries, set QT_DEBUG_PLUGINS=1 and re-run the application.
Warning: OpenGL Version check failed. Falling back to Mesa software rendering.
qt.qpa.plugin: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: wayland, offscreen, xcb, wayland-egl.
Earlier versions of this app used to work. Also, I don't see a distribution package mentioning something like "libxcb-cursor".
I tried choosing other platform plugin settings; wayland and wayland-egl just failed, and offscreen succeeded, but showed nothing.
What can I do to get this application to run:
Notes:
* The app is NVIDIA NSight Compute 2024.1, in case that matters.
* Assume I can get root access (but let's not get too crazy)
einpoklum
(10753 rep)
Mar 28, 2024, 03:38 PM
• Last activity: Mar 28, 2024, 04:21 PM
2
votes
2
answers
688
views
Is there an exhaustive list of plugins for Dovecot?
**Background** I am looking for plugins for Dovecot (specifically authentication plugins) because I would like to look at source code for reference as to how to make an authentication plugin for Dovecot. I have search through the official list on the [Dovecot website][1] as well as a [Google search]...
**Background**
I am looking for plugins for Dovecot (specifically authentication plugins) because I would like to look at source code for reference as to how to make an authentication plugin for Dovecot.
I have search through the official list on the Dovecot website as well as a Google search for a list of plugins available. Unfortunately I haven't been able to find anything that fits what I am looking for.
**Questions**
Are there more plugins available than in the official list?
Where can I find these plugins?
Are there any authentication plugins available for Dovecot?
I am looking for a response that answers all of the questions above.
Thank you for your assistance.
Dodzi Dzakuma
(255 rep)
Apr 7, 2014, 12:55 AM
• Last activity: Mar 6, 2024, 04:05 PM
0
votes
1
answers
669
views
Cannot install Equalizer plugin for Rhythmbox
I downloaded the rhythmbox ppa. I launched the command : sudo apt-get install rhythmbox-plugin-equalizer But the equalizer plugin does not appear in the list of plugins in the Preferences menu. When I try again, the following message appears: Reading status information... Done rhythmbox-plugin-equal...
I downloaded the rhythmbox ppa.
I launched the command :
sudo apt-get install rhythmbox-plugin-equalizer
But the equalizer plugin does not appear in the list of plugins in the Preferences menu.
When I try again, the following message appears:
Reading status information... Done rhythmbox-plugin-equalizer is already the most recent version (0.4.1-1~zesty). 0 updated, 0 newly installed, 0 to remove and 0 not updated.
The plugin seems therefore well installed. However, even when relaunching Rhythmbox, I do not see it in the list of plugins.
I'm using Elementary OS 7.1, based on Ubuntu 22.04.3.
David
(1 rep)
Dec 10, 2023, 02:03 PM
• Last activity: Dec 10, 2023, 02:42 PM
0
votes
0
answers
1008
views
Setting indent blankline plugin in lua with custom options
I do not know how to write configs in lua. I am using neovim and my configartion is written in lua. I have few plugins and I use lazy nvim as my plugin manager. I have a seperate plugins directory which holds my plugins' lua files. I currently have the below as my indent-blankline.lua file: ``` loca...
I do not know how to write configs in lua.
I am using neovim and my configartion is written in lua.
I have few plugins and I use lazy nvim as my plugin manager.
I have a seperate plugins directory which holds my plugins' lua files.
I currently have the below as my indent-blankline.lua file:
local Plugin = {'lukas-reineke/indent-blankline.nvim'}
Plugin.name = 'indent_blankline'
Plugin.main = 'ibl'
Plugin.event = {'BufReadPost', 'BufNewFile'}
-- See :help ibl.setup()
Plugin.opts = {
enabled = false,
scope = {
enabled = false,
},
indent = {
char = '▏',
},
}
return Plugin
I want to add the config below which I found in the github page of the plugin. It will apply colors to the lines:
local highlight = {
"RainbowRed",
"RainbowYellow",
"RainbowBlue",
"RainbowOrange",
"RainbowGreen",
"RainbowViolet",
"RainbowCyan",
}
local hooks = require "ibl.hooks"
-- create the highlight groups in the highlight setup hook, so they are reset
-- every time the colorscheme changes
hooks.register(hooks.type.HIGHLIGHT_SETUP, function()
vim.api.nvim_set_hl(0, "RainbowRed", { fg = "#E06C75" })
vim.api.nvim_set_hl(0, "RainbowYellow", { fg = "#E5C07B" })
vim.api.nvim_set_hl(0, "RainbowBlue", { fg = "#61AFEF" })
vim.api.nvim_set_hl(0, "RainbowOrange", { fg = "#D19A66" })
vim.api.nvim_set_hl(0, "RainbowGreen", { fg = "#98C379" })
vim.api.nvim_set_hl(0, "RainbowViolet", { fg = "#C678DD" })
vim.api.nvim_set_hl(0, "RainbowCyan", { fg = "#56B6C2" })
end)
require("ibl").setup { indent = { highlight = highlight } }
I am not sure how/where to place the above.
I wonder if someone can tell me how do I integrate this to my config.
Muzzamil
(3 rep)
Oct 15, 2023, 07:09 AM
1
votes
0
answers
273
views
What does the dovecot acl plugin actually do?
Can I reasonably do shared mailboxes without the acl plugin? I do personal mailbox sharing completely with unix permissions: i.e. some accounts put their mailboxes in a unix group so that everyone in that group can access it. Even the IMAP ACL RFC considers unix permission based implementations legi...
Can I reasonably do shared mailboxes without the acl plugin? I do personal mailbox sharing completely with unix permissions: i.e. some accounts put their mailboxes in a unix group so that everyone in that group can access it. Even the IMAP ACL RFC considers unix permission based implementations legit (i.e. some IMAP permissions end up being linked).
The sentence "When testing you could first try accessing shared/public mailboxes without ACL plugin even enabled." from the [dovecot acl doc] indicates that sharing works without that acl plugin.---So what does it bring to the table?
Robert Siemer
(2445 rep)
Jul 24, 2023, 10:30 AM
1
votes
1
answers
1110
views
No Java Plugin? Now what?
Many systems, in particular various platforms offering a software KVM, have a Java-based UI for management. Often these provide a URL to download a "jnlp" file. These days Oracle et al have decided to remove this feature from the JRE package. Ref: https://unix.stackexchange.com/questions/639464/java...
Many systems, in particular various platforms offering a software KVM, have a Java-based UI for management. Often these provide a URL to download a "jnlp" file.
These days Oracle et al have decided to remove this feature from the JRE package.
Ref: https://unix.stackexchange.com/questions/639464/java-8-for-linux-x64-has-no-libnpjp2-so
Ref: https://java.com/en/download/help/release_changes.html
How is one supposed to launch these tools (not the least of which being the ILO UI of Oracle servers) without the Java plugin now?
VagrantPaladin
(71 rep)
Jan 19, 2022, 05:32 AM
• Last activity: Jul 5, 2023, 06:58 PM
0
votes
1
answers
440
views
"E492: Not an editor command: PlugInstall" only when I "sudo vim"
My question is a spinoff from this previous question 6 months ago, so to get more details and see how I've installed Vim Plug have a look [here][1]. Currently I wanted to add this extension. https://github.com/mattn/emmet-vim Here's my `.vimrc` file. ``` 1 2 syntax on 3 map :source ~/.vimrc 4 5 set...
My question is a spinoff from this previous question 6 months ago, so to get more details and see how I've installed Vim Plug have a look here .
Currently I wanted to add this extension.
https://github.com/mattn/emmet-vim
Here's my
.vimrc
file.
1
2 syntax on
3 map :source ~/.vimrc
4
5 set background=light " set background = set bg
6
7 " colorscheme desert
8 colorscheme elflord
9 " colorscheme slate
10 " colorscheme pablo
11 " colorscheme koehler
12 " colorscheme murphy
13 " colorscheme industry
14 " colorscheme torte
15 " colorscheme default
16 " colorscheme morning
17 " colorscheme ron
18 "
19 set background=dark " Setting up background=dark, makes text lighter
20 "
21 "
22 "
23 set nocompatible " Set compatibility to Vim only
24 set wildmenu " Enable Vim's builtin auto completion engine
25 set ignorecase " By default searching in Vin using / command is case-sensitive.
26 " Use 'set ignorecase' to set searching in Vim case insensitive.
27 " Use 'set smartcase' to make search case insensitive if you type the search pattern using lower case only.
28 "
29 set number " Show line numbers. Opposite is set nonumber.
30 "
31 set shiftwidth=3 " Set tabulator size to 4
32 set tabstop=3 " Set tabulator size to 4
33 set softtabstop=3 " Set tabulator size to 4
34 "
35 set wrap " Automatically wrap text that extends beyond the screen length
36 "
37 set laststatus=2 " Show status bar
38 "
39 set encoding=utf-8 " Force encoding
40 set list " Shows hidden characters
41 set nolist " Hide invisible characters
42 "
43 "
44 "
45 " Call the .vimrc.plug file
46 if filereadable(expand("~/.vimrc.plug"))
47 source /home/michal/.vimrc.plug
48 endif
49
And here's my .vimrc.plug
file:
1 " Plugins will be downloaded under the specified directory.
2 call plug#begin('~/.vim/plugged')
3
4 " Fugitive Vim Github Wrapper
5 Plug 'tpope/vim-fugitive'
6 " Emmet Vim
7 Plug 'mattn/emmet-vim'
8
9 call plug#end()
Both of these files are located in my user directory /home/michal/
, like so:
michal@ubuntu:~$ ls -lah /home/michal/.vim*
-rw------- 1 michal michal 20K Jun 21 23:23 /home/michal/.viminfo
-rw-rw-r-- 1 michal michal 1.7K Jun 21 23:12 /home/michal/.vimrc
-rw-rw-r-- 1 michal michal 203 Jun 21 23:09 /home/michal/.vimrc.plug
-rw-rw-r-- 1 michal michal 110 Dec 14 2022 /home/michal/.vimrc.plug.bak
-rw-r--r-- 1 root root 12K Jun 21 23:53 /home/michal/.vimrc.plug.swp
When I execute the command :PlugInstall
while I run Vim as michal
user, everything works fine.
But when I open Vim using sudo vim
and then try to run :PlugInstall
, I get E492: Not an editor command: PlugInstall
error.
Why is that?
I'm using Vim 95/100 times using sudo vim filename
, therefore I need all those plugins I install with Vim Plug, to work in sudo mode.
michal roesler
(289 rep)
Jun 21, 2023, 10:10 PM
• Last activity: Jun 22, 2023, 02:19 AM
1
votes
0
answers
1118
views
How do I change an oh-my-zsh bindkey that a plug-in set?
You can find most of the context on [this github comment][1]. I installed the [zsh-autocomplete plugin][2] and it adds a feature I don't want: pressing up fills the page with a menu of previous commands I've run. I like the other features but I want the up button to behave like default bash/zsh/oh-m...
You can find most of the context on this github comment . I installed the zsh-autocomplete plugin and it adds a feature I don't want: pressing up fills the page with a menu of previous commands I've run. I like the other features but I want the up button to behave like default bash/zsh/oh-my-zsh, cycling through the history one line at a time.
In that first link you can see how to make this change:
bindkey '\eA' up-line-or-search
. But I don't have enough context to know what to do with that information. I'm not even sure if the answer to my SO question applies to zsh-autocomplete, any plug-in, or zsh/oh-my-zsh as a whole (please let me know in your answer):
Am I supposed to add bindkey '\e[A' up-line-or-search
to my ~/.zshrc
to overwrite the default, am I supposed to modify something in ~/.oh-my-zsh/lib/key-bindings.zsh
, or am I supposed to change something in another place?
---
UPDATE: The github issue linked to [zsh-autocomplete/.zshrc . If I looked around more I would've seen the answer to my question at the top of that file:
# The code below sets all of Autocomplete's settings to their default values. To
# change a setting, copy it into your .zshrc
file and modify it there.
FWIW, you should put this after the file runs source $ZSH/oh-my-zsh.sh
. If you put it before, it has no affect.
This answers my main question, but this minor one remains:
> I'm not even sure if the answer to my SO question applies to zsh-autocomplete specifically, any plug-in, or zsh/oh-my-zsh as a whole (please let me know in your answer)
Daniel Kaplan
(1070 rep)
Apr 7, 2023, 12:18 AM
• Last activity: Apr 12, 2023, 09:03 PM
4
votes
1
answers
4449
views
xfce - How to make the Network Manager applet work in the Status Notifier plugin?
On Xubuntu the *Status Notifier* plugin (pacakge name : `xfce4-statusnotifier-plugin`) works natively, it's the default plugin that manage the *Network Manager* applet, which means it is this plugin that displays the little Wi-Fi icon on the panel. On Debian XFCE however the default plugin for the *...
On Xubuntu the *Status Notifier* plugin (pacakge name :
xfce4-statusnotifier-plugin
) works natively, it's the default plugin that manage the *Network Manager* applet, which means it is this plugin that displays the little Wi-Fi icon on the panel.
On Debian XFCE however the default plugin for the *NM* applet is the *Notification Area*.
I'm trying to install the *Status Notifier* plugin on Debian to replace the *Notification Area* but I can't make it work, the plugin doesn't display any item. The xfce4-statusnotifier-plugin
documentation says :
> **Known Issues**
> Plugin Doesn't Show Any Items
>
> There is already a running service which works with status notifier
> items. Most probably it's the indicator-application service which is
> used by xfce4-indicator-plugin. Make sure this service is not running:
> remove this indicator from xfce4-indicator-plugin and remove the
> service from autostart.
But I don't understand it. Plus I don't have the same scenario since I don't have the xfce4-indicator plugin installed. In my case I think the problem is the Notification Area.
Nicryc
(335 rep)
Apr 16, 2020, 11:32 PM
• Last activity: Apr 12, 2023, 02:03 AM
2
votes
2
answers
658
views
How to write a plugin or script for Kate that takes a unicode code point and inserts the corresponding unicode character at cursor?
Entering arbitrary Unicode characters according to their code point is simple e.g. in Gedit (press Ctrl + Shift + u , enter the (hex) code point, press enter). One can even use the terminal. For example, executing `echo -e '\u2603'` produces a snowman, ☃. Here 2603 is, again, the code point in hex....
Entering arbitrary Unicode characters according to their code point is simple e.g. in Gedit (press Ctrl+Shift+u, enter the (hex) code point, press enter).
One can even use the terminal. For example, executing
echo -e '\u2603'
produces a snowman, ☃. Here 2603 is, again, the code point in hex.
KDE's Kate, however, currently (as of Version 19.12.3) does not seem to have similar functionality.
True, one can use Gedit or the terminal to produce the symbol, which can then be copied and pasted into Kate. But this is awkward.
At the same time, Kate does support plugins and scripts. Unfortunately, I have not been able to find any tutorials for how to write them (except [this one](https://kate-editor.org/2004/01/06/writing-a-kate-plugin/) , from 2004, which is so terse that it hardly qualifies as a tutorial, and anyway is probably obsolete).
It would be nice if the plugin were to implement the same functionality as Gedit, since its method of entering Unicode characters seems to be a pretty standard way to do it.
But it doesn't have to be done that way. Maybe the Kate plugin (or Kate script?) could work like this: upon pressing a keyboard shortcut, a standard KDE pop-up dialog appears, prompting you to enter the Unicode hex code. Once the code is entered, we press 'enter', and the corresponding Unicode character is inserted at the current location of the cursor in Kate.
No doubt there are other methods of entering that would make sense. The key is that the Unicode character must be entered at the current location of the cursor.
Is something like this possible to do in Kate using plugins (or scripts)? How difficult might it be to write the appropriate plugin (or script)? How would one go about writing and installing such a plugin?
linguisticturn
(171 rep)
Apr 13, 2022, 09:22 PM
• Last activity: Feb 24, 2023, 11:19 AM
0
votes
1
answers
1862
views
treesitter Neovim plugin not working on nixos
I have installed home-manager in a flake as a module. The Flake and the Module are in ```/etc/nixos/```. My Home manager File links to another file in which I configure neovim, this file is located in ```/etc/nixos/config/nvim/nvim.nix```. The Contents of that file are ``` # neovim configuration fil...
I have installed home-manager in a flake as a module.
The Flake and the Module are in
My Home manager File links to another file in which I configure neovim, this file is located in
The Contents of that file are
The Flake and the Module are in
/etc/nixos/
.My Home manager File links to another file in which I configure neovim, this file is located in
/etc/nixos/config/nvim/nvim.nix
.
The Contents of that file are
# neovim configuration file
pkgs:
{
enable = true;
vimAlias = true;
# A simple configuration for neovim (sourced files)
extraLuaConfig = ''
-- Indentation
vim.opt.smartindent = true
vim.opt.autoindent = true
-- UI settings
vim.opt.number = true
vim.opt.cursorline = true
'';
plugins = with pkgs.vimPlugins; [
vim-nix
yuck-vim
markdown-preview-nvim
{
plugin = telescope-nvim;
config = ''
" Find files using Telescope command-line sugar.
noremap ff Telescope find_files
nnoremap fg Telescope live_grep
nnoremap fb Telescope buffers
nnoremap fh Telescope help_tags
" Using Lua functions
nnoremap ff lua require('telescope.builtin').find_files()
nnoremap fg lua require('telescope.builtin').live_grep()
nnoremap fb lua require('telescope.builtin').buffers()
nnoremap fh lua require('telescope.builtin').help_tags()
'';
}
{
type = "lua";
plugin = catppuccin-nvim;
config = ''
require("catppuccin").setup({
flavour = "mocha", -- latte, frappe, macchiato, mocha
background = { -- :h background
light = "latte",
dark = "mocha",
},
transparent_background = false,
show_end_of_buffer = false, -- show the '~' characters after the end of buffers
term_colors = false,
dim_inactive = {
enabled = false,
shade = "dark",
percentage = 0.15,
},
no_italic = false, -- Force no italic
no_bold = false, -- Force no bold
styles = {
comments = { "italic" },
conditionals = { "italic" },
loops = {},
functions = {},
keywords = {},
strings = {},
variables = {},
numbers = {},
booleans = {},
properties = {},
types = {},
operators = {},
},
color_overrides = {},
custom_highlights = {},
integrations = {
cmp = true,
gitsigns = true,
nvimtree = true,
telescope = true,
notify = false,
mini = false,
-- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations)
},
})
-- setup must be called before loading
vim.cmd.colorscheme "catppuccin"
'';
}
nvim-web-devicons
neo-tree-nvim
{
type = "lua";
plugin = nvim-treesitter;
config = ''
require'nvim-treesitter.configs'.setup {
ensure_installed = "maintained",
highlight = {
enable = true,
}
}
'';
}
nvim-lspconfig
rust-tools-nvim
];
extraPackages = with pkgs; [
tree-sitter
rust-analyzer
ripgrep
nil
zig
ripgrep
kotlin-language-server
fd
statix
cppcheck
deadnix
alejandra
nodePackages.pyright
nodejs-16_x
tree-sitter
nil
clang-tools
cmake-language-server
# ccls
wl-clipboard
omnisharp-roslyn
netcoredbg
gcc # treesitter
nixfmt
nodePackages.typescript-language-server
python310Packages.autopep8
lazygit
];
}
When I open a file, for example a *.lua
I get the error Message:Error detected while processing /home/simon/.config/nvim/init.lua:
Could not create parser dir ' /nix/store/w3x3582xldrjymxbxz98lzlfmhazibmy-vim-pack-dir/pack/myNeovimPackages/start/nvim-treesitter/parser ': Vim:E739: Cannot create directory /nix/sto
re/w3x3582xldrjymxbxz98lzlfmhazibmy-vim-pack-dir/pack/myNeovimPackages/start/nvim-treesitter/parser: read-only file system
How can I fix this? Any help is greatly appreciated.
Zxmon
(3 rep)
Feb 11, 2023, 06:03 PM
• Last activity: Feb 11, 2023, 06:38 PM
0
votes
0
answers
284
views
Warning on yum update
I'm using centos 7, and when I want to run `yum update` console showing me below warning : Configuration file /etc/yum/pluginconf.d/getpagespeed.conf not found Unable to find configuration file for plugin getpagespeed Loaded plugins: fastestmirror How can I remove first two warning ?
I'm using centos 7, and when I want to run
yum update
console showing me below warning :
Configuration file /etc/yum/pluginconf.d/getpagespeed.conf not found
Unable to find configuration file for plugin getpagespeed
Loaded plugins: fastestmirror
How can I remove first two warning ?
hgp
(1 rep)
Nov 27, 2022, 06:23 PM
• Last activity: Nov 27, 2022, 08:36 PM
0
votes
2
answers
1472
views
Is there a way to automatically remove trailing whitespace when saving with gedit?
Is there a plugin of some sorts that gets rid of trailing spaces and tabs in every line when saving a file edited with gedit?
Is there a plugin of some sorts that gets rid of trailing spaces and tabs in every line when saving a file edited with gedit?
user418703
(83 rep)
Jun 19, 2020, 07:37 AM
• Last activity: Nov 27, 2022, 05:41 PM
1
votes
2
answers
5925
views
Icons are not displayed in vim-airline and NERDTree
I've just installed plugins for my Neovim using vim-plug.  The plugins are working perfectly, but it's the icons within them that are haunting me.  I've provided screenshots of them below. NERDTree: [![NERDTree][1]][1] vim-airline: [![vim-airline][2]][2] They look very weird...
I've just installed plugins for my Neovim using vim-plug.
The plugins are working perfectly,
but it's the icons within them that are haunting me.
I've provided screenshots of them below.
NERDTree:
vim-airline:
They look very weird and it's hard to use.
Here's what I've tried:
* Installed the plugin https://github.com/ryanoasis/vim-devicons
* Installed https://github.com/ryanoasis/nerd-fonts#font-installation
* Added this


let g:airline_powerline_fonts = 1
I am using Debian Linux AMD64.
psychoSherlock
(23 rep)
Jun 9, 2021, 08:31 AM
• Last activity: Nov 15, 2022, 05:48 PM
1
votes
1
answers
694
views
Qt statically linked application error: linuxfb plugin not found by the application
I have successfully developed a graphical Qt 5.15.2 application using Qt Creator with dynamically linked libraries. For various reasons I have determined static linking would be better for my application. I attempted to switch my development environment to use static libraries instead of dynamic. My...
I have successfully developed a graphical Qt 5.15.2 application using Qt Creator with dynamically linked libraries. For various reasons I have determined static linking would be better for my application.
I attempted to switch my development environment to use static libraries instead of dynamic. My application built with no errors, but when I deployed my application to a development board (a BeagleBone Black running Debian 11.5), I got the following error:
qt.qpa.plugin: Could not find the Qt platform plugin "linuxfb" in ""
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
I passed in a -platform linuxfb
command line argument, I built my own static Qt libraries, I added CONFIG += static
to my .pro
file, and I am using the static libraries in Qt Creator. Is there something special I need to do to get the linuxfb
library/plugin to link? Any insight into how I can resolve this would be greatly appreciated.
amyers
(61 rep)
Nov 11, 2022, 03:38 PM
• Last activity: Nov 14, 2022, 01:32 PM
0
votes
1
answers
458
views
Thunderbird TbSync plugin not compatible... but compatible?
OS: Ubuntu/Linux 20.04 Thunderbird: 102.2.2 My calendar stopped working, and it appears that the reason for that is that the TbSync plugin is not compatible with TB 102.2.2. No updates of the plugin are available. However, when I click on "more information" I get a message saying "The add-on “TbSync...
OS: Ubuntu/Linux 20.04
Thunderbird: 102.2.2
My calendar stopped working, and it appears that the reason for that is that the TbSync plugin is not compatible with TB 102.2.2. No updates of the plugin are available. However, when I click on "more information" I get a message saying "The add-on “TbSync” seems to be maintained and is compatible with Thunderbird 102.".
What do I do? I must have a working calendar in my e-mail app. So far I tried to reinstall everything, which took quite some time, but this did not help.
I considered going back to an earlier version of TB, 102.1 maybe, but
apt policy thunderbird
does not list any versions between the ancient 68.7 and 102.2.2.
January
(1947 rep)
Oct 31, 2022, 04:01 PM
• Last activity: Nov 1, 2022, 03:49 PM
Showing page 1 of 20 total questions