Comments (5)
I tried using chatGPT 4 to solve the problem, while looking at the code myself. I'm new to lua and textadept. I didn't manage, every fix suggested by chatGPT was totally a failure :)
This is the conversation. Interesting that it seems to know so much about textadept (a surprise) but it's all wrong!
https://chat.openai.com/share/d14227e6-9988-4ae6-88ee-2c7e9a5e7c42
from textadept.
Fascinating. It looks like chatGPT's knowledge of Textadept is up-to-date in some places, but outdated in others. This auto-close feature is called auto-pair, and the manual demonstrates how to turn it off (https://orbitalquark.github.io/textadept/manual.html#adept-editing). Put the following in your ~/.textadept/init.lua:
textadept.editing.auto_pair = nil
If you just want to turn off the behavior for apostrophes, you'd use
textadept.editing.auto_pair["'"] = nil
from textadept.
Thanks so much! You are right, it's in the manual; really sorry I wasted your time. And also sorry I thought it would be faster to use chatGTP than reading the manual. A pity it's so inconsistent. It would be wonderful it it knew the latest API. Maybe one can try doing retrieval-augmented-generation with an open source LLM using the docs... interesting side project! maybe I'll attempt it.
I tried both solutions, and somehow they didn't work for me. The first one fails silently, second one with an error
Here's my init.lua (could be there's an interaction with something else?)
https://pastebin.com/edDv1cc6
from textadept.
That was my mistake. It's textadept.editing.auto_pairs
. Note the trailing 's'. Sorry about that.
from textadept.
Thanks, that works, closing issue
from textadept.
Related Issues (20)
- Tabs Management HOT 1
- buffer:set_encoding('UTF-8') causes marking buffer as changed HOT 5
- Compilation on Ubuntu 18.04 failed when trying to build scintilla HOT 3
- Making syntax highlighting in Textadept providing features supported in SciTE Python lexer HOT 7
- Alternative download site for current Textadept files HOT 2
- Request change of behaviour for rectangular selection to ignore line ends HOT 2
- Latest textadept crashes on Win7 HOT 2
- HTML files missing from docs in 12.2-Linux release HOT 1
- When `~/.textadept/locale.conf` is present, **Edit** > **Preferences** followed by **Quick Open User Home** shows a single tab in the tab bar HOT 3
- Keypad / numpad's Enter sometimes doesn't behave like regular Enter/Return. HOT 1
- Crash on text-paste HOT 8
- Typing causes CPU heating at 500 lines 28 kByte large bash lexed file with large string areas. HOT 11
- doesn't compile using msys2 for windows HOT 4
- Curses version opens with an error, session.lua:71 bad argument to iconv #2 (string expected, got nil) HOT 1
- Bash lexer issue with escaping # ( \# ) HOT 5
- Curses version on mlterm seems to have a problem with soft wrapping HOT 4
- Textadept-curses cannot be launched from another process (zk) HOT 9
- Configuring markdown and python language servers produces 'failed to execute language server' HOT 1
- Textadept curses on mlterm produces straneous characters HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textadept.