Comments (3)
What is this shortcut code for? What's an example where a keystroke from the command log can be thought of as a shortcut?
The shortcut shown on the status bar before the sheetname: 1›sample
. For regular sheets, it's assigned; the intention is that if you opened a non-precious sheet, the "shortcut" would be the key you used to open it, like C
for the columns sheet or O
for the options sheet. But this usage was disabled (when Shift+C
just did not look right and I wasn't sure about it anyway), so these days the shortcut is only meaningful for precious sheets.
Thanks for looking into all this, by the way. I know this code can get pretty convoluted over time.
from visidata.
Okay I've got a clearer idea of exactly when this happens. It's when you create a sheet without using keystrokes. Like a command started by exec-command
, or a help menubar entry, or clicking a statusbar link. The sheet has to have precious == False
, like a HelpSheet or OptionsSheet. So. running exec-longname
and then choosing help-commands
.
Line 412 in c702c35
Because the sheet isn't precious, it can't be found in
vd.allSheets
, so the command log is searched for keystrokes. But there are no keystrokes because the action that triggered the command wasn't a keypress.from visidata.
As a secondary issue, I wonder if
Line 417 in c702c35
has a remaining problem, when it uses
rows[0]
. It assumes the first row of the command log is the one that created the sheet. But they're usually set-options
commands. (This same assumption caused a problem with undo in #2244.) It seems like that may cause an error.
I haven't yet found a case it does. But before I dig deeper, what is this shortcut code for? What's an example where a keystroke from the command log can be thought of as a shortcut?
from visidata.
Related Issues (20)
- save as csv actually saves tsv when file existing file extension is CSV, i.e. uppercase - PR available #2269 HOT 1
- [fixed] split columns based on header
- [undo] can't undo some threaded commands HOT 1
- visidata silently fails under Windows with Python 3.12 (3.11 fine) HOT 2
- Summarizing column (describe-sheet) is much slower (+300%) with typed date column HOT 6
- [tsv] add CLI option to use NUL as delimiter HOT 7
- [input] screen flickers in edit-cell HOT 2
- visidata.desktop doesn't pass validation HOT 2
- addcol-window should pad first list with None to indicate no rows above first row
- Avoid Status Spam/Visual Noise HOT 4
- Pypy Crashes HOT 1
- More helpful saving and format options HOT 5
- `show-command-info` bugs
- [stored] input history is not saved if visidata_dir does not exist HOT 4
- [question] What is the recommended way to change `options.regex_skip`?
- reopenning `vds` file starts with VdsIndexSheet
- [eml loader] The email loader doesn't import email.parser HOT 6
- [guides] Updating VisiData Documentation
- Log file inside zip file erroneously guessed as "tar" instead of text HOT 13
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.