Commit graph

144 commits

Author SHA1 Message Date
Daisuke Maki a66446d2e2 add follow mode for streaming input 2026-06-04 11:16:23 +09:00
Daisuke Maki e32edbda88 remove named return values from Compile and MovePage 2026-02-20 22:27:01 +09:00
Daisuke Maki bb8a6310ea very minor tidying 2026-02-20 20:54:18 +09:00
Daisuke Maki 11754d722b extract config package 2026-02-20 18:42:24 +09:00
Daisuke Maki 1fea5cd5a0 Replace raw closure callbacks with interfaces 2026-02-20 13:35:31 +09:00
Daisuke Maki fc18c0d3de Methodically add function comments 2026-02-20 10:55:49 +09:00
Daisuke Maki 7e206f13a7 Merge master into feat-query-cursor-style 2026-02-19 09:55:31 +09:00
Daisuke Maki 7041a265db Add QueryCursor config option 2026-02-19 09:48:14 +09:00
Daisuke Maki 95e13933c2 Do away with interface.go files 2026-02-18 21:12:19 +09:00
Daisuke Maki 37be8451e6 Use idiomatic empty string check 2026-02-18 15:57:19 +09:00
Daisuke Maki b4141eca2a Extract queryStartX variable in UserPrompt.Draw 2026-02-18 14:46:08 +09:00
lestrrat ef6c4839e3
Merge pull request #689 from peco/refactor-list-area-draw
Extract helpers from ListArea.Draw
2026-02-18 11:31:18 +09:00
Daisuke Maki 965feb2b8c Extract helpers from verticalScroll 2026-02-18 11:25:50 +09:00
Daisuke Maki 9425a01e3e Extract helpers from ListArea.Draw 2026-02-18 11:25:47 +09:00
Daisuke Maki 46331edcfd Check for far wider range of things in lint 2026-02-18 07:49:40 +09:00
Daisuke Maki 55c3397a6d remove duplicate specification 2026-02-17 19:10:32 +09:00
Daisuke Maki 65643706c7 remove direct access to peco from layout 2026-02-17 14:44:18 +09:00
Daisuke Maki 24df34ddda refactor single key jump into its own state object 2026-02-17 13:20:10 +09:00
lestrrat efac590a5c
Merge pull request #651 from peco/remove-matchindexer
Remove unused interface
2026-02-17 12:04:49 +09:00
Daisuke Maki c373a303a8 Remove unused interface 2026-02-17 11:59:10 +09:00
Daisuke Maki 3a14f1f89b Move variable to platform specific const 2026-02-17 11:58:32 +09:00
Daisuke Maki a74e621fe0 Use max() 2026-02-17 07:05:24 +09:00
Daisuke Maki 772c3ef5f1 Don't panic for invalid values 2026-02-17 00:06:20 +09:00
Daisuke Maki a1d7596b1a Replace Termbox (name references) with Tcell 2026-02-16 23:50:19 +09:00
Daisuke Maki 12a55491ef Change Hub structure to take typed payloads 2026-02-16 22:40:34 +09:00
Daisuke Maki 91339e96f9 Do away with pkg/errors 2026-02-16 22:06:21 +09:00
Daisuke Maki d8f557e108 Merge branch 'master' into gh-398 2026-02-16 20:57:37 +09:00
Daisuke Maki 49f7153598 Add ANSI color support 2026-02-16 20:06:53 +09:00
Daisuke Maki d4ef70813f Implement zoom in/out 2026-02-16 19:49:49 +09:00
Daisuke Maki 4f1d149ceb Add new layout, refactr layout lookup/registration 2026-02-16 15:05:01 +09:00
Daisuke Maki a35076da6f Fix #455 2026-02-15 18:13:54 +09:00
lestrrat 7715ff482f
Merge pull request #586 from peco/gh-294
fix #294
2026-02-15 15:42:44 +09:00
Daisuke Maki 56c81db24a gh-294 2026-02-15 15:35:21 +09:00
Daisuke Maki 17b0aba8e8 Fix #511 2026-02-15 14:19:08 +09:00
Daisuke Maki 214f2faeb1 Fix #460 2026-02-15 13:15:27 +09:00
Daisuke Maki e4f2b4837d optimizations around memory usage 2026-02-14 15:47:37 +09:00
Daisuke Maki db63d9f380 Add linting fixes 2026-02-14 07:48:23 +09:00
Daisuke Maki 7d42de7860 actual migration 2026-02-13 19:48:39 +09:00
Daisuke Maki e9c5582ba1 Initial pass 2026-02-13 12:35:06 +09:00
Shohei YOSHIDA 1ee7eade47 Fix double cursor issue 2020-10-23 11:59:56 +09:00
Daisuke Maki d02bb4122c Workaround glide being stubborn wrt lestrrat/go-pdebug -> lestrrat-go/pdebug 2018-10-25 09:50:16 +09:00
Daisuke Maki b60d067747 Call SetCursor when drawing the prompt 2018-03-30 10:07:42 +09:00
Daisuke Maki d213c89cab Rename to Top -> FirstItem, Bottom -> LastItem 2017-12-27 07:14:11 +09:00
Anders Eurenius 3058ce77f4 Add scroll to top and bottom 2017-12-26 15:28:00 +01:00
Takashi Kokubun 405a729ac0 Reduce right scroll limit with a screen width
Column: 0 can show `width` columns.
Thus if lines have `num` columns, we should limit scroll to Column: `num - width`.

Otherwise screen is blacked out when we unlimitedly do ScrollRight.
2017-03-17 10:43:21 +09:00
Daisuke Maki 98936082f0 Only calculate the column size when necessary
This trims down the calculation required by #409 to only those lines
that will appear on screen, and still controls how far right we can
scroll to
2017-03-17 09:42:33 +09:00
Daisuke Maki bc7e5ea1f6 remove unnecessary check for selectionPrefix 2017-02-28 23:30:06 +09:00
Daisuke Maki ff10112452 PoC implementation for #384
* missing docs
* missing tests
2017-02-26 08:27:11 +09:00
Daisuke Maki aa928308ca wrong type 2016-12-15 09:48:28 +09:00
Daisuke Maki 47be5c7c85 Integrate ExternalCommand into the new format 2016-12-14 14:59:38 +09:00