Kartik K. Agaram
bdcf2b4c1b
new command: reload a single file
2022-08-04 04:32:45 -07:00
Kartik K. Agaram
54b1810eb4
new design for command palette
...
As recommended by Nextjournal (https://www.youtube.com/watch?v=A0TafHXszgM )
and Jack Rusher (http://akkartik.name/archives/foc/share-your-work/1658973003.417109.html#1658994188.140719 ).
The poor aesthetics are all me. Also, I'm putting the menu/palette up
top due to a technical difficulty: the basic contract of the editor
widget from lines.love is to draw from a given (top,left,right) to the
bottom of the screen. There's currently no way to specify a bottom.
2022-08-03 23:21:54 -07:00
Kartik K. Agaram
c32bb969e5
rename
2022-08-03 21:03:12 -07:00
Kartik K. Agaram
f2c8b9d120
bugfix: opening 'recently modified' column
2022-08-03 17:07:05 -07:00
Kartik K. Agaram
d642c4da72
some bugfixes starting from an empty data dir
2022-08-03 17:05:43 -07:00
Kartik K. Agaram
27c3d18041
also unroll the other way
2022-08-03 15:45:45 -07:00
Kartik K. Agaram
10ee712307
bugfix: don't crash when unrolling along a non-existent link
2022-08-03 10:55:32 -07:00
Kartik K. Agaram
a81215d34b
bugfix: rendering after reload
2022-08-02 22:16:01 -07:00
Kartik K. Agaram
e75ac18120
new command: delete note
...
Not recommended and ignored in many situations, but I want to try to
provide a full basis set of operations.
2022-08-02 21:49:51 -07:00
Kartik K. Agaram
e079c8bf98
faster reload
2022-08-02 21:35:22 -07:00
Kartik K. Agaram
f47b6434a1
new command: reload all columns
...
But this is really slow.
2022-08-02 21:31:28 -07:00
Kartik K. Agaram
fe03ee00de
hide some irrelevant commands
2022-08-02 21:24:32 -07:00
Kartik K. Agaram
745098ff90
new command: copy pane to new column
...
Handy before closing current column.
2022-08-02 21:10:48 -07:00
Kartik K. Agaram
14948d76a5
slightly improve copy for some commands
2022-08-02 21:07:33 -07:00
Kartik K. Agaram
f8a60e2b13
bugfix when closing column
2022-08-02 18:48:19 -07:00
Kartik K. Agaram
f04b3a8f23
extract a couple of functions
2022-08-02 18:48:08 -07:00
Kartik K. Agaram
1be1e040b1
extract function
2022-08-02 18:40:13 -07:00
Kartik K. Agaram
d70bd644ba
move
2022-08-02 18:30:40 -07:00
Kartik K. Agaram
6daf8bbcca
new command: append to a pane along some link/dimension
...
step:unroll :: add:append
2022-08-02 18:26:26 -07:00
Kartik K. Agaram
c16a705a67
ergonomics for unroll: if the current column has nothing else, just replace it with its unrolling
2022-08-02 18:15:20 -07:00
Kartik K. Agaram
b05d54855f
recreate unrolled column after restart
...
I'm starting to notice that the titles of columns needs to be a language
now, unambiguously affecting how it is initialized.
Perhaps over time we'll need a separate column id in addition to name.
2022-08-02 16:00:18 -07:00
Kartik K. Agaram
0d1d70613a
new command: unroll from a pane along some link/dimension
2022-08-02 15:46:22 -07:00
Kartik K. Agaram
39aab4f2f1
rename a function
2022-08-02 15:40:13 -07:00
Kartik K. Agaram
5217e0a81f
new command: step
2022-08-02 13:35:04 -07:00
Kartik K. Agaram
2bb9d03cbf
add refuses to clobber existing links
...
We might want to make this smarter and insert in between. We'll see.
2022-08-02 13:30:43 -07:00
Kartik K. Agaram
951320b2fd
rename command: new -> add
2022-08-02 13:22:04 -07:00
Kartik K. Agaram
ed6003b9e9
increase default column size
...
I've migrated all my notes, so this is hopefully workable.
2022-08-02 12:35:42 -07:00
Kartik K. Agaram
daeae5650b
store links in Cache rather than panes
...
There's no point in the duplication, and it adds a lot of complexity.
2022-07-31 00:26:42 -07:00
Kartik K. Agaram
4e0648cc7e
missed a command
2022-07-31 00:26:11 -07:00
Kartik K. Agaram
67dbb123f9
avoid redundant writes
2022-07-31 00:20:27 -07:00
Kartik K. Agaram
f518f515b5
start implementing links between notes/panes
...
Not persistent yet.
2022-07-30 22:44:37 -07:00
Kartik K. Agaram
36f1829372
indicate commands that require args
2022-07-30 22:10:32 -07:00
Kartik K. Agaram
b137cfc010
extract function
2022-07-30 15:40:22 -07:00
Kartik K. Agaram
427f6fd606
commands can now take args
...
No completion yet for args.
2022-07-30 15:32:19 -07:00
Kartik K. Agaram
a79957316b
decouple command names in UI from function names
2022-07-30 14:59:05 -07:00
Kartik K. Agaram
f6e45014d9
context-sensitive command palette
...
Pretty hacky at the moment.
2022-07-30 14:43:47 -07:00
Kartik K. Agaram
a36e8c292d
allow adjusting column width
...
It's already saved across restart.
2022-07-30 14:13:30 -07:00
Kartik K. Agaram
2440ae7d14
scroll commands always bring cursor pane into focus
2022-07-30 08:34:01 -07:00
Kartik K. Agaram
33f29128b3
some commands for scrolling up/down by pane
...
Left/right movements seem more challenging to get right. We should pan
by pixel. What if the target column is too short? Should we also pane
up? Anyways, left/right seems less useful given our column-oriented
metaphor, so punt on it for now.
2022-07-29 22:17:40 -07:00
Kartik K. Agaram
43f5610e80
bugfix: unmaximizing a pane
2022-07-29 20:54:37 -07:00
Kartik K. Agaram
0ef5acc4c5
bugfix: editing a file that's also opened in a second pane
2022-07-29 12:34:21 -07:00
Kartik K. Agaram
7c6595d92e
rename
2022-07-29 12:27:45 -07:00
Kartik K. Agaram
4fa0b4ccad
bugfix: show real file candidates in command palette
...
In the process I also switched the semantics of App.open_for_reading and
App.open_for_writing back to something similar to io.open, as they are
in upstream lines.love.
2022-07-29 11:40:33 -07:00
Kartik K. Agaram
a21f5105ef
support symlinks when opening files
2022-07-29 11:32:53 -07:00
Kartik K. Agaram
62ab445270
new command: capture
...
Ideally exiting the capture window would also remove its column, so that
we don't need two operations. But I don't yet know how to cleanly
accomodate that special case. Good enough for now that the flow before
capture is clean; we'll put up with some klunkiness exiting capture
mode.
2022-07-29 11:29:51 -07:00
Kartik K. Agaram
0acfd8fb10
getting out of focus mode
2022-07-28 22:08:59 -07:00
Kartik K. Agaram
2f08c3c774
command maximize a single pane
...
There isn't yet a way to unmaximize.
2022-07-28 21:58:57 -07:00
Kartik K. Agaram
ef3ad2d802
ensure keyboard shortcut works identically to palette command
2022-07-28 21:55:01 -07:00
Kartik K. Agaram
ee9b56448d
make the command palette a meta mode
...
I want to create modes that can open the command palette within them.
2022-07-28 20:36:39 -07:00
Kartik K. Agaram
80e466ead8
bugfix in command palette
...
Since commit 1fef4bfe8
yesterday.
Scenario: open the command palette and run a command. Then open the
command palette a second time.
2022-07-28 20:35:09 -07:00