Comments (5)
As it turns out this was fairly easy to implement, I just need to allow the run command to be customizable. You just need to use the underlying terminal function to make this work. Just switch to the multi
branch to test it out give your initial feedback. If you have anything else on your mind do let me know.
And also sorry for the delay :)
Example
local term = require("FTerm.terminal")
-- Opening bashtop
local bashtop = term:new()
bashtop:setup({cmd = "bashtop"})
function _G.__fterm_bashtop()
bashtop:toggle()
end
-- Opening gitui
local gitui = term:new()
gitui:setup({cmd = "gitui"})
function _G.__fterm_gitui()
gitui:toggle()
end
In Action
fterm.mp4
Just ignore the broken highlights in
gitui
from fterm.nvim.
This feature was also in my mind. But I think I might need to implement multiple terminals instances first as currently It only supports only one terminal instance.
from fterm.nvim.
I am not sure about the vim character like %
, $
. But you can use the lua API like vim.api.nvim_get_current_buf()
which I think is same as %
.
from fterm.nvim.
So I found function "chansend()" which can send argument to terminal (https://neovim.io/doc/user/channel.html). I guess it will help you.
from fterm.nvim.
That's good. What about to make symbols (like % in Floaterm) to send file name.
from fterm.nvim.
Related Issues (20)
- Respect vim.o.shell HOT 2
- How to use the same python venv that was set in shell HOT 1
- bug: Not working properly on warp terminal
- Question: does this plugin add the toggle action for the `<TAB>` key? HOT 1
- Terminal output shifted left after opening an existing FTerm instance HOT 2
- How to run statically-typed language by scratch terminal (Such as c/cpp/java) HOT 1
- Feat: make col and row options for position depend on vim.o.col and vim.o.row
- Can't background an FTerm terminal running `k9s`
- [feature] Option to set starting path HOT 1
- Trigger FocusGained after closing the terminal window HOT 1
- Redirect nvim call inside fterm to outter nvim
- Pressing backspace while holding shift doesn't delete a character
- Avoid linter complaints from missing fields in setup table HOT 2
- Floating help buffers HOT 3
- [RFE] Customise the background HOT 1
- Use of FTermToggle HOT 4
- Why the FTerm not load my fish configuration? HOT 2
- I have two opened fterm windows, how to auto close the second fterm window when the first fterm window opened? HOT 1
- Automatic CWD on every enter.
- bug: cannot click on opened terminal on neovide
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 fterm.nvim.