cutelisp
5eddf5b85d
Change MainTab calls ( #3750 )
...
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
Swaping `MainTab` calls to `h.tab` will not change the normal micro
behaviour.
This changes will make possible to call `ForceQuit`, `VSplitIndex` and
`HSplitIndex` for tabs that aren't main one.
2025-05-26 22:07:14 +02:00
Jöran Karl
cd0dc9a701
options: Add truecolor
to control the usage ( #2867 )
...
- `auto`: enable usage of true color if it is supported, otherwise disable it
- `on`: force usage of true color
- `off`: disable true color usage
Co-authored-by: Dmytro Maluka <dmitrymaluka@gmail.com>
2025-05-26 18:25:07 +02:00
Dmytro Maluka
98ff79dbca
Relocate buffer view after setting options that affect it ( #3743 )
...
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
Whenever the user changes the value of an option that affects the
calculation of display params in updateDisplayInfo(), we should
immediately recalculate those params and relocate the buffer view
accordingly.
For example: after enabling ruler via `set ruler on`, if the cursor is
currently at the rightmost edge of the bufpane and softwrap is disabled,
then the cursor becomes invisible (since it is now outside the view,
since the buffer view width is decreased as a result of adding the ruler
but StartCol is not updated accordingly), it only becomes visible again
after the user types a character (or performs some other action that
triggers updateDisplayInfo() + relocate). Fix it.
2025-05-11 16:20:23 +02:00
cutelisp
44d0368747
FIX: ruler drawn on top of the tab bar ( #3744 )
...
Wrap function lacked a condition to avoid drawing below 0.
2025-05-11 15:32:35 +02:00
cutelisp
895d9d2c82
Fix Scrollbar covering cursor ( #3741 )
2025-05-11 15:22:59 +02:00
Jöran Karl
58b6917526
command: Apply small cosmetics to openTerm()
2025-05-08 06:27:11 +02:00
Jöran Karl
63b6a1e6cf
command: Extract term()
as dedicated openTerm()
function
2025-05-08 06:27:07 +02:00
Jöran Karl
4769a94fb1
command: Exit loop in TermCmd()
after terminal call
...
Otherwise the last opened pane is closed instead of the active one.
2025-05-07 19:33:31 +02:00
Jöran Karl
06fe85c8c9
Merge pull request #3708 from Neko-Box-Coder/ChainedParentsFix
...
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
Fix unable to perform proportional resize caused by chained parents after quiting a nested VSplit inside a HSplit
2025-04-29 21:06:19 +02:00
cutelisp
ca32ffbb4a
Change variable visibility ( #3720 )
...
Changed DoubleClick and TripleClick to public so they can be accessed by
Lua plugins.
2025-04-29 20:55:01 +02:00
Jöran Karl
7e583fe6ff
lua: Remove duplicated export of filepath.Join()
2025-04-26 20:37:51 +02:00
Jöran Karl
1eef4bb3e0
Convert leftover usages of path
to filepath
2025-04-26 20:37:49 +02:00
Neko Box Coder
8e7089993d
Simplifying unsplit logic
2025-04-26 18:11:19 +01:00
Neko Box Coder
080d216ffd
Fixing chained parents by flattening the tree on unsplit
2025-04-26 18:11:19 +01:00
niten94
c457ae421a
Generalize save prompt on close code into method
...
This slightly changes the open and term command to be similar with the
Quit action, where the buffer or pane is replaced after the prompts are
completed if "n" wasn't pressed after the 1st prompt.
2025-04-18 19:21:27 +08:00
niten94
0d5b2b73e3
Skip save on open or term command if buffer is shared
2025-04-18 19:19:19 +08:00
Mikko
79fe4ae3e3
fix cycling through completion suggestions ending in non-word character ( #3650 )
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
2025-04-15 21:02:41 +02:00
cutelisp
b88300ef7f
Fix comment ( #3716 )
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
2025-04-12 12:27:00 +02:00
niten94
f2454c9248
Specify tags where term emulation is unsupported
...
Copy build constraints in actions_other.go to terminal_unsupported.go,
to avoid maintaining separate build constraints that are similar with
terminal_supported.go.
2025-04-05 17:49:57 +08:00
niten94
a699cac3be
Support term emulation on solaris, netbsd, openbsd/*
...
Support terminal emulation on platforms below:
- Solaris
- NetBSD: Supported in creack/pty since v1.1.12
- OpenBSD with GOOS != amd64
- Other architectures are supported now in creack/pty
2025-04-05 17:49:57 +08:00
Dmytro Maluka
948b05745f
Fix remaining gofmt complaints
2025-03-24 23:04:06 +01:00
Dmytro Maluka
eadc402ae0
Import paths: fix non-alphabetic order
...
Make gofmt happy about that.
2025-03-24 23:01:48 +01:00
Dmytro Maluka
1bd86a8f79
Build constraints: switch to new syntax
...
Make gofmt happy about that.
2025-03-24 22:54:32 +01:00
Dmytro Maluka
fa317456e9
Merge pull request #3689 from Neko-Box-Coder/BetterSaveCmd
...
Build and Test / test (1.19.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.19.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.19.x, windows-latest) (push) Has been cancelled
Build and Test / test (1.23.x, macos-latest) (push) Has been cancelled
Build and Test / test (1.23.x, ubuntu-latest) (push) Has been cancelled
Build and Test / test (1.23.x, windows-latest) (push) Has been cancelled
Updating SaveCmd to use saveBufToFile instead
2025-03-12 22:11:51 +01:00
Neko Box Coder
82b700390d
ReloadSettings only when we need to when saving a file ( #3688 )
2025-03-12 22:06:24 +01:00
Neko Box Coder
9003243178
Removing the use of SetName() for file buffers
2025-03-12 19:24:36 +00:00
Neko Box Coder
c9f12206e9
Updating SaveCmd to use saveBufToFile instead
2025-03-11 03:11:03 +00:00
Jöran Karl
8b21724c6e
buffer: Store the encoding
inside the buffer
2025-02-28 19:02:16 +01:00
Jöran Karl
fe134b92d5
history: Perform write process safe
2025-02-28 18:57:53 +01:00
Jöran Karl
6164050425
save: Update the modification time of the buffer only in case of file changes
2025-02-28 18:57:53 +01:00
Jöran Karl
49aebe8aca
save+util: Provide a meaningful error message for safe (over-)write fails
2025-02-28 18:57:53 +01:00
Jöran Karl
79ce93fb7d
backup: Clear the requested backup upon completion notification
...
Now the main go routine takes care of the backup synchronization.
2025-02-28 18:57:53 +01:00
Jöran Karl
771aab251c
save+backup: Process the save
& backup
with a sequential channel
...
As advantage we don't need to synchonize them any longer and
don't need further insufficient lock mechanisms.
2025-02-28 18:57:53 +01:00
Jöran Karl
35d295dd04
buffer: Remove superfluous backupTime
2025-02-28 18:57:53 +01:00
Jöran Karl
8c883c6210
backup: Rearrange and extend BackupMsg
2025-02-28 18:57:53 +01:00
Jöran Karl
c4dcef3e66
micro: Provide recovery of settings.json
& bindings.json
2025-02-28 18:57:53 +01:00
Jöran Karl
9592bb1549
save: Further rework of overwriteFile()
...
- extract the open logic into `openFile()` and return a `wrappedFile`
- extract the closing logic into `Close()` and make a method of `wrappedFile`
- rename `writeFile()` into `Write()` and make a method of `wrappedFile`
This allows to use the split parts alone while keeping overwriteFile() as simple
interface to use all in a row.
2025-02-28 18:57:53 +01:00
Jöran Karl
f8d98558f0
save: Merge overwrite()
into overwriteFile()
and extract writeFile()
2025-02-28 18:57:53 +01:00
Jöran Karl
c926649496
settings: Perform write process safe
2025-02-28 18:57:53 +01:00
Jöran Karl
63d68ec441
bindings: Perform write process safe
2025-02-28 18:57:53 +01:00
Jöran Karl
c972360386
serialize: Perform write process safe
2025-02-28 18:57:53 +01:00
Jöran Karl
022ec0228a
util: Provide SafeWrite()
to generalize the internal file write process
...
SafeWrite() will create a temporary intermediate file.
2025-02-28 18:57:53 +01:00
Jöran Karl
4ac8c786f5
backup: Perform write process safe
2025-02-28 18:57:53 +01:00
Jöran Karl
21b7080935
util: Provide AppendBackupSuffix()
for further transformations
2025-02-28 18:57:53 +01:00
Jöran Karl
1663a1a6e4
actions: Don't overwrite the buffers Path
...
This is fully handled within the buffers `save` domain.
2025-02-28 18:57:53 +01:00
Jöran Karl
9b53257e50
save: Perform write process safe
2025-02-28 18:57:53 +01:00
Jöran Karl
6e8daa117a
ioutil: Remove deprecated functions where possible
2025-02-28 18:57:53 +01:00
Jöran Karl
18a81f043c
util: Generalize the file mode of 0666 with util.FileMode
2025-02-28 18:57:53 +01:00
Jöran Karl
69064cf808
util: Improve and rename EscapePath()
to DetermineEscapePath()
...
If the new URL encoded path is found then it has precedence over the '%' escaped
path. In case none of both is found the new URL approach is used.
2025-02-28 18:57:53 +01:00
Jöran Karl
5aac42dbe7
bindings: Convert os.IsNotExist()
into errors.Is()
2025-02-28 18:57:53 +01:00