Comments (3)
I use it to skip the quitguard. But also the key combination is easier for me to press.
Also, I override the Q
binding of quit-sheet-free
, and bind it instead to a custom quit function that avoids the quitguard for the current sheet.
from visidata.
Here's what I've found so far.
The exception occurs because t.ident
is None
. I believe this means the thread has not been started.
The thread here t
is sort()
for a Helpsheet
.
Bisect shows the exception first appears in fde0588, where CommandHelpGetter(type(sheet))
is called:
Line 17 in fde0588
It creates a
HelpSheet
:Line 118 in fde0588
And
sort()
is called from the HelpSheet's afterLoad
:Line 290 in fde0588
My first thought was that it may be related to recent changes to how threads work in threads.py
in the last few months. But I don't think they are related. I tested older versions of threads.py
while keeping the rest of the code at the breaking commit (fde0588). Reverting threads.py
to the last stable change in March 2023 (1c1a11e) still had the problem of the occasional exception on quitting, as did more recent commits affecting threads.py
from October and November 2023. So it's not caused by those recent changes.
Commenting out self.helpsheet.ensureLoaded()
does seem to prevent the exception:
Line 119 in fde0588
from visidata.
It could also be that the thread finishes after it's put into the list of threads to cancel. But if it's not running we can't cancel it anyway. So we can just check for this to avoid the exception.
BTW, do you have a reason to use Ctrl+Q
instead of gq
? I think the only difference is that it avoids the quitguard, do you want that behavior, or do you prefer the keybinding, or?
from visidata.
Related Issues (20)
- show number of lines in truncator
- show warning when using deprecated commands
- [dev] add CI benchmark for startup time
- create vd.open_foo from formats.jsonl HOT 1
- sample_data is missing from sdist HOT 3
- Unintuitive command selection in palette HOT 9
- [docs] search-and-replace in a column
- [split] Change in behaviour in visidata 3.0 HOT 6
- [dup-selected] The dup-selected command leaves all rows still selected in the resulting sheet HOT 4
- [html] 'ValueError: Invalid IPv6 URL' when loading table with malformed URL HOT 3
- Drop support for Python 3.7
- key column wider than screen makes other columns un-viewable HOT 1
- [dive-selected] Dive-selected traces on FreqTableSheet HOT 1
- [cosmetic] have the sidebar overlap the command palette HOT 4
- space + command_query + tab + number chooses the wrong entry
- [memory/cpu]. VisiData ends up using lots of CPU and memory in idle state HOT 6
- [cmdlog] when key column values are not unique, row commands refer to incorrect rows HOT 1
- vdsql 'ibis' NameError HOT 4
- [question] cmdlog tests save .rst file as tsv HOT 2
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 visidata.