gpt4 book ai didi

textselection - 如何在 Geany 中阻止选择?

转载 作者:行者123 更新时间:2023-12-03 01:24:24 26 4
gpt4 key购买 nike

我经常需要选择一个文本 block ,例如出现在多行上的前导字符。 LibreOffice 具有 block 选择功能。我怎样才能在 Geany 中做到这一点?

例如,我想删除管道和每行开头的空格:

| Create another 'Login Role' for the 'auth' user:
| Role name: auth
| Password: auth
| Role privileges: Create database objects

最佳答案

这称为“列模式编辑”。看这里:

Column mode editing (rectangular selections)

There is basic support for column mode editing. To use it, create arectangular selection by holding down the Control and Shift keys (orAlt and Shift on Windows) while selecting some text. Once arectangular selection exists you can start editing the text withinthis selection and the modifications will be done for every line inthe selection.

It is also possible to create a zero-column selection - this is usefulto insert text on multiple lines.

<小时/>

Peter Mortensen 记录了如何在 Lubuntu(针对 LXQt)上配置此功能:

https://pmortensen.eu/world2/2020/03/29/using-geany/#Column_mode_blues

On Lubuntu, the keyboard shortcuts for selecting a rectangular area oftext (“column mode” in UltraEdit) do not work, because they conflictwith four default keyboard shortcuts in the window manager (LXDE?Openbox?), Shift + Alt + arrow up, Shift + Alt + arrow down,Shift + Alt + arrow left, and Shift + Alt + arrow right.

Disable the window manager keyboard shortcuts by editing file~/.config/openbox/lubuntu-rc.xml near “S-A-Up”, “S-A-Down”,“S-A-Left”, and “S-A-Right”. For example, change “S-A-Up” to“S-A-Up99”, “S-A-Down” to “S-A-Down99”, “S-A-Left” to “S-A-Left99”,and “S-A-Right” to “S-A-Right99”, respectively. And add an XML commentas to why and document the original values (so they can more easily bereverted). Edit and update (without a restart required):

vi ~/.config/openbox/lubuntu-rc.xml
openbox --reconfigure

It was tested with Lubuntu 18.04 (32 bit).

关于textselection - 如何在 Geany 中阻止选择?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18822654/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com