Comments (5)
+1 Can reproduce locally in iTerm on OS X
from pick.
This still appears to be an issue with these steps:
- Open vim
- Open your pick search
- Hit CTRL-C to exit pick without choosing a file
- Quit vim
from pick.
An idea that @calleerlandsson and I talked about IRL is to explicitly reset the terminal when closing ncurses. Right now we configuring ncurses on boot: https://github.com/thoughtbot/pick/blob/0c03b0d76a8546016f824f7f977593fcbf1dab90/src/ui.c#L46-L65
Maybe doing the same on when we're stopping ncursise might do the trick?
from pick.
This is actually still happening for me... do you think there are any changes to the vim function needed? Here's what I'm using:
" pick
function! EscapeFilePath(path)
return substitute(a:path, ' ', '\\ ', 'g')
endfunction
function! Pick(choice_command, vim_command)
try
let selection = system(a:choice_command . " | pick")
catch /Vim:Interrupt/
" Swallow the ^C so that the redraw below happens; otherwise there will be
" UI leftovers on the screen
redraw!
return
endtry
redraw!
if strlen(selection) > 0
exec a:vim_command . " " . EscapeFilePath(selection)
endif
endfunction
nnoremap <leader>t :call Pick("find * -type f", ":e")<cr>
from pick.
@ggilder see #32 you need to use pick -X
from pick.
Related Issues (20)
- selection bar vanishes on "Page-Down" HOT 2
- make check fails with gcc7 HOT 15
- Add missing tests for Emacs keys HOT 2
- Instructions for installation on Gentoo HOT 1
- 1.8.0 breaks escape sequence of keys HOT 4
- Update example in manual HOT 11
- Compiler warnings on Debian 7 (Wheezy) HOT 3
- Sanbox support for more operating systems
- Cursor keys don't work in rxvt-terminal with pick.vim HOT 1
- Use retained mode rendering for better performance HOT 13
- Build FAIL on Arch Linux HOT 5
- Silently pass through on single choice/match HOT 4
- Windows support
- On make install; prefer /usr/local/share/man instead of /usr/local/man HOT 1
- Build Broken GCC 10.0.1 (Fedora 32) HOT 2
- RPM for Fedora HOT 8
- Reintroduction of the removed version option HOT 6
- Keypad enter does not work when keypad is in "cursor" mode HOT 6
- enhancement: -q should quietly fail HOT 3
- Do not start interactive finder if stdin is empty
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 pick.